Skip to content
Snippets Groups Projects
Commit 49b8fd6d authored by Monster Iestyn's avatar Monster Iestyn
Browse files

Don't attempt to load the "Lua/" or "SOCs/" folder lumps themselves as Lua/SOC lumps

parent 8556a056
No related branches found
No related tags found
No related merge requests found
......@@ -190,6 +190,7 @@ static inline void W_LoadDehackedLumpsPK3(UINT16 wadnum)
if (posStart != INT16_MAX)
{
posEnd = W_CheckNumForFolderEndPK3("Lua/", wadnum, posStart);
posStart++; // first "lump" will be "Lua/" folder itself, so ignore it
for (; posStart < posEnd; posStart++)
LUA_LoadLump(wadnum, posStart);
}
......@@ -197,6 +198,7 @@ static inline void W_LoadDehackedLumpsPK3(UINT16 wadnum)
if (posStart != INT16_MAX)
{
posEnd = W_CheckNumForFolderEndPK3("SOCs/", wadnum, posStart);
posStart++; // first "lump" will be "SOCs/" folder itself, so ignore it
for(; posStart < posEnd; posStart++)
{
lumpinfo_t *lump_p = &wadfiles[wadnum]->lumpinfo[posStart];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment