mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +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);
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue