[Client] Only require cellStore for ConsoleCommand packets with objects

This commit is contained in:
David Cernat 2020-07-13 13:04:02 +02:00
parent 39e429c9eb
commit d3f23220de
2 changed files with 2 additions and 3 deletions

View File

@ -934,7 +934,8 @@ void ObjectList::runConsoleCommands(MWWorld::CellStore* cellStore)
}
}
}
else
// Only require a valid cellStore if running on cell objects
else if (cellStore)
{
LOG_APPEND(TimedLog::LOG_VERBOSE, "-- Running on object %s %i-%i", baseObject.refId.c_str(), baseObject.refNum, baseObject.mpNum);

View File

@ -19,8 +19,6 @@ namespace mwmp
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
if (!ptrCellStore) return;
objectList.runConsoleCommands(ptrCellStore);
}
};