summaryrefslogtreecommitdiff
path: root/source/ui_script.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/ui_script.c')
-rw-r--r--source/ui_script.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/ui_script.c b/source/ui_script.c
index 2cd4fb2..a51fbde 100644
--- a/source/ui_script.c
+++ b/source/ui_script.c
@@ -294,16 +294,17 @@ static void Parse_Color( void ) {
}
static qboolean Parse_File( const char *path, int depth ) {
- char *data, *p, *cmd;
+ char *raw, *data, *p, *cmd;
int argc;
menuFrameWork_t *menu = NULL;
- FS_LoadFile( path, ( void ** )&data );
- if( !data ) {
+ FS_LoadFile( path, ( void ** )&raw );
+ if( !raw ) {
Com_Printf( "Couldn't load %s\n", path );
return qfalse;
}
+ data = raw;
COM_Compress( data );
while( *data ) {
@@ -415,7 +416,7 @@ static qboolean Parse_File( const char *path, int depth ) {
data = p + 1;
}
- FS_FreeFile( data );
+ FS_FreeFile( raw );
return qtrue;
}