aboutsummaryrefslogtreecommitdiff
path: root/primedev/shared/exploit_fixes
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/shared/exploit_fixes')
-rw-r--r--primedev/shared/exploit_fixes/exploitfixes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/primedev/shared/exploit_fixes/exploitfixes.cpp b/primedev/shared/exploit_fixes/exploitfixes.cpp
index 8064d5ac..44651b3c 100644
--- a/primedev/shared/exploit_fixes/exploitfixes.cpp
+++ b/primedev/shared/exploit_fixes/exploitfixes.cpp
@@ -262,7 +262,7 @@ bool, __fastcall, (const char* pModName)) // 48 83 EC 28 48 8B 0D ? ? ? ? 48 8D
// clang-format on
{
// somewhat temp, store the modname here, since we don't have a proper ptr in engine to it rn
- int iSize = strlen(pModName);
+ size_t iSize = strlen(pModName);
g_pModName = new char[iSize + 1];
strcpy(g_pModName, pModName);
@@ -323,7 +323,7 @@ bool, __fastcall, (CBaseClient* self, uint32_t unknown, const char* pCommandStri
"load_recent_checkpoint" // This is the instant-respawn exploit, literally just calls RespawnPlayer()
};
- int iCmdLength = strlen(tempCommand.Arg(0));
+ size_t iCmdLength = strlen(tempCommand.Arg(0));
bool bIsBadCommand = false;
for (auto& blockedCommand : blockedCommands)