From 11b660abb09093339957affa59035fd58da96306 Mon Sep 17 00:00:00 2001 From: NyakoFox Date: Sun, 15 Feb 2026 20:37:11 -0400 Subject: [PATCH] Fix empty roomnames potentially crashing the game TinyXML2 seems to sometimes return NULL when an element has either no text or whitespace, instead of returning an empty string. Why it does this, I'm not sure, but I have recently learned from Dav999 that it will crash the game. Great. --- desktop_version/src/CustomLevels.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/desktop_version/src/CustomLevels.cpp b/desktop_version/src/CustomLevels.cpp index 58365528..818002a5 100644 --- a/desktop_version/src/CustomLevels.cpp +++ b/desktop_version/src/CustomLevels.cpp @@ -1392,6 +1392,10 @@ next: { name.text.push_back(std::string(text)); } + else + { + name.text.push_back(std::string("")); + } } else { @@ -1409,6 +1413,10 @@ next: { name.text.push_back(std::string(text)); } + else + { + name.text.push_back(std::string("")); + } } } }