- missed a NULL pointer check.

This commit is contained in:
Christoph Oelckers 2015-03-21 13:08:08 +01:00
parent ffbcda206c
commit 7dbabb5ee7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}