check active_module before dereferencing

This commit is contained in:
Fabian Greffrath 2024-05-24 18:04:18 +02:00
parent eeed37db4f
commit a8e90456fb

View File

@ -149,7 +149,7 @@ boolean W_AddPath(const char *path)
} }
} }
if (result == W_NONE) if (result == W_NONE || !active_module)
{ {
return false; return false;
} }