From 37e7d2c15b1546988d7d9b756fa86cf87488a77a Mon Sep 17 00:00:00 2001 From: David Cernat Date: Tue, 21 Feb 2017 02:09:39 +0200 Subject: [PATCH] [Client] Don't get invalid cells in LocalPlayer::sendJournalEntry() --- apps/openmw/mwmp/LocalPlayer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 013ac0d8b..1ea289f61 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -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();