diff --git a/core/logic/smn_filesystem.cpp b/core/logic/smn_filesystem.cpp index 6581f2e9..91785048 100644 --- a/core/logic/smn_filesystem.cpp +++ b/core/logic/smn_filesystem.cpp @@ -551,7 +551,7 @@ static cell_t sm_FileExists(IPluginContext *pContext, const cell_t *params) if (params[0] >= 2 && params[2] == 1) { - char *pathID = NULL; + char *pathID = "GAME"; if (params[0] >= 3) pContext->LocalToStringNULL(params[3], &pathID); @@ -664,7 +664,7 @@ static cell_t sm_FileSize(IPluginContext *pContext, const cell_t *params) if (params[0] >= 2 && params[2] == 1) { - char *pathID = NULL; + char *pathID = "GAME"; if (params[0] >= 3) pContext->LocalToStringNULL(params[3], &pathID);