diff --git a/rehlds/engine/common.cpp b/rehlds/engine/common.cpp index fa1facb7d..badf9931b 100644 --- a/rehlds/engine/common.cpp +++ b/rehlds/engine/common.cpp @@ -1995,6 +1995,9 @@ int EXT_FUNC COM_FileSize(const char *filename) unsigned char* EXT_FUNC COM_LoadFile(const char *path, int usehunk, int *pLength) { + if (!path || !path[0]) + return NULL; + char base[MAX_PATH]; unsigned char *buf = NULL;