Skip to content

Commit 3707b53

Browse files
committed
Disable empty CResourceChecker data arrays
1 parent 859e6ce commit 3707b53

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Server/mods/deathmatch/logic/CResourceChecker.Data.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace
1515
// Minimum version requirements for functions/events
1616
//
1717

18+
#if 0 // Activate the counterpart in CResourceChecker::CheckVersionRequirements when you add items to these lists
1819
struct SVersionItem
1920
{
2021
SString functionName;
@@ -30,6 +31,7 @@ namespace
3031
// Features added in 1.6.1
3132
// {"name", "1.6.1-9.bbbbb"},
3233
};
34+
#endif
3335

3436
//
3537
// Deprecated function/events

Server/mods/deathmatch/logic/CResourceChecker.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,7 @@ void CResourceChecker::CheckVersionRequirements(const string& strIdentifierName,
10851085
static CHashMap<SString, CMtaVersion> clientFunctionMap;
10861086
static CHashMap<SString, CMtaVersion> serverFunctionMap;
10871087

1088+
#if 0
10881089
// Check if lookup maps need initializing
10891090
if (clientFunctionMap.empty())
10901091
{
@@ -1094,6 +1095,7 @@ void CResourceChecker::CheckVersionRequirements(const string& strIdentifierName,
10941095
for (uint i = 0; i < NUMELMS(serverFunctionInitList); i++)
10951096
MapSet(serverFunctionMap, serverFunctionInitList[i].functionName, CMtaVersion(serverFunctionInitList[i].minMtaVersion));
10961097
}
1098+
#endif
10971099

10981100
// Select client or server check
10991101
const CHashMap<SString, CMtaVersion>& functionMap = bClientScript ? clientFunctionMap : serverFunctionMap;

0 commit comments

Comments
 (0)