mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- Caution: Wads.GetLumpName with a char pointer is stupid because it doesn't 0-terminate its return.
This commit is contained in:
parent
1e1194a669
commit
c7cf619ff4
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue