From b708b8911c8f3421ca0f328325166bf61283b13d 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 704bed37..76db9a61 100644 --- a/desktop_version/src/CustomLevels.cpp +++ b/desktop_version/src/CustomLevels.cpp @@ -1387,6 +1387,10 @@ next: { name.text.push_back(std::string(text)); } + else + { + name.text.push_back(std::string("")); + } } else { @@ -1404,6 +1408,10 @@ next: { name.text.push_back(std::string(text)); } + else + { + name.text.push_back(std::string("")); + } } } }