mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
[Client] Assign summoned creatures' actorId correctly, skipping those already assigned
This commit is contained in:
parent
dae76b91ee
commit
3e7230e89d
@ -751,7 +751,7 @@ namespace MWMechanics
|
|||||||
{
|
{
|
||||||
for (std::map<CreatureStats::SummonKey, int>::iterator it = mSummonedCreatures.begin(); it != mSummonedCreatures.end(); )
|
for (std::map<CreatureStats::SummonKey, int>::iterator it = mSummonedCreatures.begin(); it != mSummonedCreatures.end(); )
|
||||||
{
|
{
|
||||||
if (Misc::StringUtils::ciEqual(getSummonedCreature(it->first.first), refId))
|
if (Misc::StringUtils::ciEqual(getSummonedCreature(it->first.first), refId) && it->second == -1)
|
||||||
{
|
{
|
||||||
it->second = actorId;
|
it->second = actorId;
|
||||||
break;
|
break;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
#define BPP_INIT(packet_id) packetID = packet_id; strPacketID = #packet_id; className = typeid(this).name(); avoidReading = false;
|
#define BPP_INIT(packet_id) packetID = packet_id; strPacketID = #packet_id; className = typeid(this).name(); avoidReading = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user