fix rare crash due to null caller
This commit is contained in:
parent
998658f788
commit
12752c7a03
1 changed files with 1 additions and 1 deletions
|
|
@ -775,7 +775,7 @@ void HWDrawInfo::PreparePlayerSprites3D(sector_t * viewsector, area_t in_area, F
|
|||
DVector3 rotation = DVector3(weap.rotation);
|
||||
DVector3 pivot = DVector3(weap.pivot);
|
||||
|
||||
if(weap.weapon)
|
||||
if(weap.weapon && weap.weapon->GetCaller())
|
||||
{
|
||||
PClass * cls = weap.weapon->GetCaller()->GetClass();
|
||||
ModifyBobLayer3D = cls->Virtuals.Size() > ModifyBobLayer3DVIndex ? cls->Virtuals[ModifyBobLayer3DVIndex] : nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue