mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
[Server] Use new CreatureStats in ActorFunctions to fix invalid pointer
This commit is contained in:
parent
d333c0b484
commit
a2f6d99dfd
@ -27,6 +27,8 @@ void ActorFunctions::InitScriptActorList(unsigned short pid) noexcept
|
||||
scriptActorList.cell.blank();
|
||||
scriptActorList.baseActors.clear();
|
||||
scriptActorList.guid = player->guid;
|
||||
|
||||
tempActor.creatureStats = new ESM::CreatureStats();
|
||||
}
|
||||
|
||||
unsigned int ActorFunctions::GetActorListSize() noexcept
|
||||
@ -199,6 +201,7 @@ void ActorFunctions::AddActor() noexcept
|
||||
scriptActorList.baseActors.push_back(tempActor);
|
||||
|
||||
tempActor = emptyActor;
|
||||
tempActor.creatureStats = new ESM::CreatureStats();
|
||||
}
|
||||
|
||||
void ActorFunctions::SendActorList() noexcept
|
||||
|
Loading…
x
Reference in New Issue
Block a user