Skip to content
Snippets Groups Projects
Commit d15be169 authored by Golden's avatar Golden
Browse files

Forgot to check if the file was important, whoops!

parent 2c5f23ba
No related branches found
No related tags found
1 merge request!1124Fix a bug where adding the same mod multiple times counted towards the mod limit
......@@ -776,7 +776,8 @@ UINT16 W_InitFile(const char *filename, boolean mainfile, boolean startup)
if (!memcmp(wadfiles[i]->md5sum, md5sum, 16))
{
CONS_Alert(CONS_ERROR, M_GetText("%s is already loaded\n"), filename);
packetsizetally -= nameonlylength(filename) + 22;
if (important)
packetsizetally -= nameonlylength(filename) + 22;
if (handle)
fclose(handle);
return W_InitFileError(filename, false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment