mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- missed a NULL pointer check.
This commit is contained in:
parent
ffbcda206c
commit
7dbabb5ee7
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,7 @@ FAnimDef *FTextureManager::ParseRangeAnim (FScanner &sc, FTextureID picnum, int
|
|||
swapvalues (framenum, picnum);
|
||||
}
|
||||
FAnimDef *ani = AddSimpleAnim (picnum, framenum - picnum + 1, min, max - min);
|
||||
ani->AnimType = type;
|
||||
if (ani != NULL) ani->AnimType = type;
|
||||
return ani;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue