aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest')
-rw-r--r--NorthstarDedicatedTest/masterserver.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/masterserver.cpp b/NorthstarDedicatedTest/masterserver.cpp
index 9d50eda5..fffda69b 100644
--- a/NorthstarDedicatedTest/masterserver.cpp
+++ b/NorthstarDedicatedTest/masterserver.cpp
@@ -92,7 +92,12 @@ std::string unescape_unicode(const std::string& str)
result.push_back(cp & ((1 << 6) - 1) | 0b10000000 & (~(1 << 6)));
}
}
- result.append(last_match.suffix());
+ if (!last_match.ready()) {
+ return str;
+ }
+ else {
+ result.append(last_match.suffix());
+ }
return result;
}