From b426a77758e434c5c1364ebe3cbe982adb9e8f84 Mon Sep 17 00:00:00 2001 From: Allanis <allanis@saracraft.net> Date: Tue, 21 Jan 2014 20:09:47 +0000 Subject: [PATCH] [Change] Minimize data usage. --- src/outfit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/outfit.c b/src/outfit.c index a261e4b..b6ee512 100644 --- a/src/outfit.c +++ b/src/outfit.c @@ -972,6 +972,8 @@ int outfit_load(void) { outfit_parse(&outfit_stack[outfit_nstack-1], node); } } while((node = node->next)); + /* Shrink back to minimum - Shouldn't change ever. */ + outfit_stack = realloc(outfit_stack, sizeof(Outfit) * outfit_nstack); /* Second pass, set up ammunition relationships. */ for(i = 0; i < outfit_nstack; i++) {