diff --git a/source/game/StarNpc.cpp b/source/game/StarNpc.cpp index 28514b8..b44641c 100644 --- a/source/game/StarNpc.cpp +++ b/source/game/StarNpc.cpp @@ -254,7 +254,7 @@ RectF Npc::collisionArea() const { pair Npc::writeNetState(uint64_t fromVersion) { // client-side npcs error nearby vanilla NPC scripts because callScriptedEntity // for now, scrungle the collision poly to avoid their queries. hacky :( - if (m_npcVariant.overrides.getBool("overrideNetPoly", false)) { + if (m_npcVariant.overrides && m_npcVariant.overrides.getBool("overrideNetPoly", false)) { if (auto mode = entityMode()) { if (*mode == EntityMode::Master && connectionForEntity(entityId()) != ServerConnectionId) { PolyF poly = m_movementController->collisionPoly();