From 622e4b059bc3f5433e45e9ab5bfa37dc9578b6d1 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Fri, 12 Apr 2024 11:14:35 +0300 Subject: [PATCH] Update lib/CTownHandler.cpp --- lib/CTownHandler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/CTownHandler.cpp b/lib/CTownHandler.cpp index 3d177e1f7..dd2ed2593 100644 --- a/lib/CTownHandler.cpp +++ b/lib/CTownHandler.cpp @@ -1068,8 +1068,7 @@ CFaction * CTownHandler::loadFromJson(const std::string & scope, const JsonNode auto preferUndergound = source["preferUndergroundPlacement"]; faction->preferUndergroundPlacement = preferUndergound.isNull() ? false : preferUndergound.Bool(); - auto isSpecial = source["special"]; - faction->special = isSpecial.isNull() ? false : isSpecial.Bool(); + faction->special = source["special"].Bool(); // NOTE: semi-workaround - normally, towns are supposed to have native terrains. // Towns without one are exceptions. So, vcmi requires nativeTerrain to be defined