We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffa943c commit b0814cdCopy full SHA for b0814cd
Server/version.h
@@ -3,6 +3,7 @@
3
//
4
// Server version file
5
6
+#pragma once
7
8
9
// To compile a public server:
Shared/sdk/CStringMap.h
@@ -12,13 +12,13 @@
12
// String map with parsing helpers like CScriptArgReader
13
14
template<class V>
15
-class CStringMapReader : public std::unordered_map<SString, V>
+class CStringMapReader : public std::map<SString, V>
16
{
17
public:
18
void ReadString(const SString& strKeyName, SString& strOutValue, const char* szDefaultValue)
19
20
V* pstrValue = MapFind(*this, strKeyName);
21
- strOutValue = pstrValue ? *pstrValue : szDefaultValue;
+ strOutValue = pstrValue ? **pstrValue : szDefaultValue;
22
}
23
24
template<typename T, typename U>
0 commit comments