C++ conversion: fixed compilation errors for quake3 project.

This commit is contained in:
Artem Kharytoniuk
2014-05-11 00:22:27 +03:00
parent e2e32bca15
commit ff834b8b59
39 changed files with 419 additions and 405 deletions

View File

@@ -562,7 +562,7 @@ void Cmd_AddCommand( const char *cmd_name, xcommand_t function ) {
}
// use a small malloc to avoid zone fragmentation
cmd = S_Malloc (sizeof(cmd_function_t));
cmd = (cmd_function_t*) S_Malloc(sizeof(cmd_function_t));
cmd->name = CopyString( cmd_name );
cmd->function = function;
cmd->next = cmd_functions;