mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 12:23:51 +00:00
[Client] Fix Ptr initialization in mwmp::Cell
This commit is contained in:
parent
0ccbe70e61
commit
c8a486de6c
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ void Cell::updateLocal()
|
||||||
LocalActor *actor = it->second;
|
LocalActor *actor = it->second;
|
||||||
|
|
||||||
// TODO:: Make sure this condition actually works
|
// TODO:: Make sure this condition actually works
|
||||||
if (actor->getPtr().getCell() && actor->getPtr().getCell() != store)
|
if (actor->getPtr().getCell() != store)
|
||||||
{
|
{
|
||||||
LOG_APPEND(Log::LOG_INFO, "- Removing LocalActor %s which is no longer in this cell", it->first.c_str());
|
LOG_APPEND(Log::LOG_INFO, "- Removing LocalActor %s which is no longer in this cell", it->first.c_str());
|
||||||
actor->getPtr().getBase()->isLocalActor = false;
|
actor->getPtr().getBase()->isLocalActor = false;
|
||||||
|
@ -168,7 +168,7 @@ void Cell::initializeLocalActors()
|
||||||
for (typename MWWorld::CellRefList<ESM::NPC>::List::iterator listIter(npcList->mList.begin());
|
for (typename MWWorld::CellRefList<ESM::NPC>::List::iterator listIter(npcList->mList.begin());
|
||||||
listIter != npcList->mList.end(); ++listIter)
|
listIter != npcList->mList.end(); ++listIter)
|
||||||
{
|
{
|
||||||
MWWorld::Ptr ptr(&*listIter, 0);
|
MWWorld::Ptr ptr(&*listIter, store);
|
||||||
|
|
||||||
LocalActor *actor = new LocalActor();
|
LocalActor *actor = new LocalActor();
|
||||||
actor->cell = esmCell;
|
actor->cell = esmCell;
|
||||||
|
|
Loading…
Reference in a new issue