[Client] Don't process hits on non-actors after sending ObjectHit packet

This prevents errors about the non-actors not having CreatureStats.
0.8.0
David Cernat 3 years ago
parent 8bb22f1b73
commit 2a3d6ea7f0

@ -299,6 +299,7 @@ namespace MWClass
objectList->packetOrigin = mwmp::CLIENT_GAMEPLAY; objectList->packetOrigin = mwmp::CLIENT_GAMEPLAY;
objectList->addObjectHit(victim, ptr); objectList->addObjectHit(victim, ptr);
objectList->sendObjectHit(); objectList->sendObjectHit();
return;
} }
/* /*
End of tes3mp change (major) End of tes3mp change (major)

@ -607,6 +607,7 @@ namespace MWClass
objectList->packetOrigin = mwmp::CLIENT_GAMEPLAY; objectList->packetOrigin = mwmp::CLIENT_GAMEPLAY;
objectList->addObjectHit(victim, ptr); objectList->addObjectHit(victim, ptr);
objectList->sendObjectHit(); objectList->sendObjectHit();
return;
} }
/* /*
End of tes3mp change (major) End of tes3mp change (major)

Loading…
Cancel
Save