From e4b4e92e10a6509452aa339989d95f1318b38446 Mon Sep 17 00:00:00 2001 From: jeefo Date: Thu, 3 Mar 2016 15:36:16 +0300 Subject: [PATCH] fixed GetModName () --- source/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/engine.cpp b/source/engine.cpp index c298224..88e2c7d 100644 --- a/source/engine.cpp +++ b/source/engine.cpp @@ -237,7 +237,7 @@ const char *Engine::GetModName (void) { // this function returns mod name without path - char engineModName[256]; + static char engineModName[256]; g_engfuncs.pfnGetGameDir (engineModName); // ask the engine for the MOD directory path String mod (engineModName);