- Caution: Wads.GetLumpName with a char pointer is stupid because it doesn't 0-terminate its return.

This commit is contained in:
Christoph Oelckers 2017-02-27 01:58:21 +01:00
parent 1e1194a669
commit c7cf619ff4

View file

@ -109,6 +109,7 @@ void AdjustSpriteOffsets()
{
char str[9];
Wads.GetLumpName(str, i);
str[8] = 0;
FTextureID texid = TexMan.CheckForTexture(str, FTexture::TEX_Sprite, 0);
if (texid.isValid() && Wads.GetLumpFile(TexMan[texid]->SourceLump) > FWadCollection::IWAD_FILENUM)
{