forked from mirror/openmw-tes3mp
[Client] Don't get invalid cells in LocalPlayer::sendJournalEntry()
This commit is contained in:
parent
b320910c5f
commit
37e7d2c15b
1 changed files with 3 additions and 1 deletions
|
@ -1063,7 +1063,9 @@ void LocalPlayer::sendJournalEntry(const std::string& quest, int index, const MW
|
|||
journalItem.quest = quest;
|
||||
journalItem.index = index;
|
||||
|
||||
journalItem.actorCell = *actor.getCell()->getCell();
|
||||
if (actor.getCell() != nullptr)
|
||||
journalItem.actorCell = *actor.getCell()->getCell();
|
||||
|
||||
journalItem.actorCellRef.mRefID = actor.getCellRef().getRefId();
|
||||
journalItem.actorCellRef.mRefNum = actor.getCellRef().getRefNum();
|
||||
|
||||
|
|
Loading…
Reference in a new issue