From 9b31fb176167713838c7284642e56d3cc60bd381 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 4 Sep 2025 12:14:54 -0500 Subject: [PATCH] fix crash on bash door in new scenario --- src/universe/universe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/universe/universe.cpp b/src/universe/universe.cpp index 327df733..b12b9b73 100644 --- a/src/universe/universe.cpp +++ b/src/universe/universe.cpp @@ -117,7 +117,7 @@ const cTown& cCurTown::operator * () const { } int cCurTown::door_diff_adjust() { - return univ.scenario.has_feature_flag("door-town-difficulty") ? arena->difficulty : 0; + return univ.scenario.has_feature_flag("door-town-difficulty") ? univ.scenario.towns[univ.party.town_num]->difficulty : 0; } void cCurTown::place_preset_fields() {