- missed a NULL pointer check.

This commit is contained in:
Christoph Oelckers 2015-03-21 13:08:08 +01:00
parent ffbcda206c
commit 7dbabb5ee7

View file

@ -468,7 +468,7 @@ FAnimDef *FTextureManager::ParseRangeAnim (FScanner &sc, FTextureID picnum, int
swapvalues (framenum, picnum); swapvalues (framenum, picnum);
} }
FAnimDef *ani = AddSimpleAnim (picnum, framenum - picnum + 1, min, max - min); FAnimDef *ani = AddSimpleAnim (picnum, framenum - picnum + 1, min, max - min);
ani->AnimType = type; if (ani != NULL) ani->AnimType = type;
return ani; return ani;
} }