fix for join server with bots crash

This commit is contained in:
Duion 2016-12-23 16:24:29 +01:00
parent 2bbc07ebf1
commit 75b7348cd6

View file

@ -3380,7 +3380,7 @@ void ShapeBase::shakeCamera( U32 imageSlot )
bool applyShake = true; bool applyShake = true;
if (obj) if (obj && !mIsAiControlled)
{ {
ShapeBase* cObj = obj; ShapeBase* cObj = obj;
while ((cObj = cObj->getControlObject()) != 0) while ((cObj = cObj->getControlObject()) != 0)
@ -3393,7 +3393,7 @@ void ShapeBase::shakeCamera( U32 imageSlot )
} }
} }
if (applyShake && obj) if (applyShake && obj && !mIsAiControlled)
{ {
VectorF diff; VectorF diff;
getMuzzlePoint(imageSlot, &diff); getMuzzlePoint(imageSlot, &diff);