mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-26 19:54:14 +01:00
Fixed rare crash in loader when tier0 was already loaded by srcds from a location other than the 'bin' directory (bug 4475, r=dvander).
This commit is contained in:
parent
8d368128e7
commit
3c18a34078
@ -231,8 +231,6 @@ mm_GetGameName()
|
||||
valve_cmdline = (GetCommandLine)mm_GetLibAddress(lib, "CommandLine");
|
||||
}
|
||||
|
||||
mm_UnloadLibrary(lib);
|
||||
|
||||
if (valve_cmdline == NULL)
|
||||
{
|
||||
mm_LogFatal("Could not locate any command line functionality");
|
||||
@ -241,6 +239,8 @@ mm_GetGameName()
|
||||
|
||||
game_name = valve_cmdline()->ParmValue("-game");
|
||||
|
||||
mm_UnloadLibrary(lib);
|
||||
|
||||
/* This probably means that the game directory is actually the current directory */
|
||||
if (!game_name)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user