Skip to content

Commit b0814cd

Browse files
committed
Fixed Linux compile error and some warnings
1 parent ffa943c commit b0814cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Server/version.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//
44
// Server version file
55
//
6+
#pragma once
67

78
//
89
// To compile a public server:

Shared/sdk/CStringMap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
// String map with parsing helpers like CScriptArgReader
1313
//
1414
template<class V>
15-
class CStringMapReader : public std::unordered_map<SString, V>
15+
class CStringMapReader : public std::map<SString, V>
1616
{
1717
public:
1818
void ReadString(const SString& strKeyName, SString& strOutValue, const char* szDefaultValue)
1919
{
2020
V* pstrValue = MapFind(*this, strKeyName);
21-
strOutValue = pstrValue ? *pstrValue : szDefaultValue;
21+
strOutValue = pstrValue ? **pstrValue : szDefaultValue;
2222
}
2323

2424
template<typename T, typename U>

0 commit comments

Comments
 (0)