From 4af22dd1fae182514c2a82825670dac0cd58e6a7 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 1 Aug 2023 17:51:58 +1000 Subject: [PATCH] Update StarNpc.cpp --- source/game/StarNpc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/game/StarNpc.cpp b/source/game/StarNpc.cpp index b44641c..e989147 100644 --- a/source/game/StarNpc.cpp +++ b/source/game/StarNpc.cpp @@ -46,7 +46,8 @@ Npc::Npc(NpcVariant const& npcVariant) m_questIndicatorOffset = jsonToVec2F(assets->json("/quests/quests.config:defaultIndicatorOffset")); - m_clientEntityMode = ClientEntityModeNames.getLeft(npcVariant.overrides.getString("clientEntityMode", "ClientSlaveOnly")); + if (npcVariant.overrides) + m_clientEntityMode = ClientEntityModeNames.getLeft(npcVariant.overrides.getString("clientEntityMode", "ClientSlaveOnly")); m_isInteractive.set(false);