From 7dbabb5ee79afbf91ea4117d35d3b7d7acab6945 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 21 Mar 2015 13:08:08 +0100 Subject: [PATCH] - missed a NULL pointer check. --- src/textures/animations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/animations.cpp b/src/textures/animations.cpp index 446f6f35ad..684869cf07 100644 --- a/src/textures/animations.cpp +++ b/src/textures/animations.cpp @@ -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; }