aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/masterserver.cpp
diff options
context:
space:
mode:
authorwolf109909 <84360921+wolf109909@users.noreply.github.com>2022-02-07 08:32:37 +0800
committerGitHub <noreply@github.com>2022-02-07 00:32:37 +0000
commit06b6940db00ee28a9aee4f746470a1ee78f6e33e (patch)
tree9aa1f27dee600fc53fc54d78c3412f5edabb7be9 /NorthstarDedicatedTest/masterserver.cpp
parent6a7f39c7d95157d6aa55f2c32415802128102625 (diff)
downloadNorthstarLauncher-06b6940db00ee28a9aee4f746470a1ee78f6e33e.tar.gz
NorthstarLauncher-06b6940db00ee28a9aee4f746470a1ee78f6e33e.zip
fixed servername and desc (#68)
Diffstat (limited to 'NorthstarDedicatedTest/masterserver.cpp')
-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;
}