mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
client/NetPacksClient.cpp: Combine null pointer checks
Co-authored-by: Nordsoft91 <nordsoft@yahoo.com>
This commit is contained in:
@@ -367,13 +367,10 @@ void ApplyClientNetPackVisitor::visitGiveBonus(GiveBonus & pack)
|
||||
void ApplyFirstClientNetPackVisitor::visitChangeObjPos(ChangeObjPos & pack)
|
||||
{
|
||||
CGObjectInstance *obj = gs.getObjInstance(pack.objid);
|
||||
if(CGI)
|
||||
if(CGI && CGI->mh)
|
||||
{
|
||||
if(CGI->mh)
|
||||
{
|
||||
CGI->mh->onObjectFadeOut(obj, pack.initiator);
|
||||
CGI->mh->waitForOngoingAnimations();
|
||||
}
|
||||
CGI->mh->onObjectFadeOut(obj, pack.initiator);
|
||||
CGI->mh->waitForOngoingAnimations();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user