Fixed a few cases when IWAD was checked by hardcoded index

This commit is contained in:
alexey.lysiuk 2017-10-21 11:10:36 +03:00
commit 724d711d1f
4 changed files with 4 additions and 4 deletions

View file

@ -87,7 +87,7 @@ void AdjustSpriteOffsets()
for (int i = 0; i < numtex; i++)
{
if (Wads.GetLumpFile(i) > 1) break; // we are past the IWAD
if (Wads.GetLumpFile(i) > Wads.GetIwadNum()) break; // we are past the IWAD
if (Wads.GetLumpNamespace(i) == ns_sprites && Wads.GetLumpFile(i) == Wads.GetIwadNum())
{
char str[9];