mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-25 14:03:33 -04:00
[Client] Only require cellStore for ConsoleCommand packets with objects
This commit is contained in:
parent
39e429c9eb
commit
d3f23220de
@ -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);
|
||||
|
||||
|
@ -19,8 +19,6 @@ namespace mwmp
|
||||
|
||||
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
|
||||
|
||||
if (!ptrCellStore) return;
|
||||
|
||||
objectList.runConsoleCommands(ptrCellStore);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user