Fixing stupid bug

This commit is contained in:
Vladislav Khorev committed 2026-11-10 23:31:54 +06:00
1 parent 255181cf31
commit cf714d4133
1 file changed
+3
+3
View File
@@ -408,6 +408,9 @@ namespace FRG {
const std::string& loc = snapshot->currentLocationId;
if (loc == "uni_exterior") return snapshot->isDarklands ? hudUniExtDarkRoot : hudUniExtRoot;
if (loc == "uni_interior") return snapshot->isDarklands ? hudUniIntDarkRoot : hudUniIntRoot;
// Other locations (e.g. campaigns that start directly in Darklands) have no
// dedicated HUD; reuse the Darklands one so the health bar is shown.
if (snapshot->isDarklands && !loc.empty()) return hudUniExtDarkRoot;
return hudDormRoot; // dorm, or a new game before the location is set
}