summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-03 12:41:40 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:09 +0000
commit19433e1c2790ebab99bdff1f18f16e8ab86d249f (patch)
tree804fbd10d47ce2622119ed5089463a4ca0b01a52 /src/cgame
parent47fd44d7bb4acd32854e4f6fdbdef04692ff728f (diff)
* (bug 4037) cgame forgets to close buildstat.cfg
* Admin searches now list all matches * !listadmins now properly handles negative numbers * "!ban: too many bans" errors were sometimes wrong * A bit of refactoring * Add %s support to sscanf
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_buildable.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c
index 03e43e17..1f882a3a 100644
--- a/src/cgame/cg_buildable.c
+++ b/src/cgame/cg_buildable.c
@@ -806,10 +806,12 @@ void CG_BuildableStatusParse( const char *filename, buildStat_t *bs )
Com_Printf("CG_BuildableStatusParse: unknown token %s in %s\n",
token.string, filename );
bs->loaded = qfalse;
+ trap_Parse_FreeSource( handle );
return;
}
}
bs->loaded = qtrue;
+ trap_Parse_FreeSource( handle );
}
#define STATUS_FADE_TIME 200