aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/keyvalues.cpp
diff options
context:
space:
mode:
authorp0358 <p0358@users.noreply.github.com>2021-12-30 04:23:08 +0100
committerp0358 <p0358@users.noreply.github.com>2021-12-30 04:23:08 +0100
commitac054ab2dc1370981258cafb175250142844260d (patch)
treeda4edebe79fb08c62e2a407448c4caaee6cf6bf2 /NorthstarDedicatedTest/keyvalues.cpp
parent893a78932c201978c329e2806869524c1d5f8456 (diff)
downloadNorthstarLauncher-ac054ab2dc1370981258cafb175250142844260d.tar.gz
NorthstarLauncher-ac054ab2dc1370981258cafb175250142844260d.zip
fix various random warnings
Diffstat (limited to 'NorthstarDedicatedTest/keyvalues.cpp')
-rw-r--r--NorthstarDedicatedTest/keyvalues.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/keyvalues.cpp b/NorthstarDedicatedTest/keyvalues.cpp
index 6de93822..b14ecf42 100644
--- a/NorthstarDedicatedTest/keyvalues.cpp
+++ b/NorthstarDedicatedTest/keyvalues.cpp
@@ -50,7 +50,7 @@ void ModManager::TryBuildKeyValues(const char* filename)
// copy over patch kv files, and add #bases to new file, last mods' patches should be applied first
// note: #include should be identical but it's actually just broken, thanks respawn
- for (int i = m_loadedMods.size() - 1; i > -1; i--)
+ for (int64_t i = m_loadedMods.size() - 1; i > -1; i--)
{
if (!m_loadedMods[i].Enabled)
continue;
@@ -92,6 +92,7 @@ void ModManager::TryBuildKeyValues(const char* filename)
char rootName[64];
memset(rootName, 0, sizeof(rootName));
+ rootName[63] = '\0';
// iterate until we hit an ascii char that isn't in a # command or comment to get root obj name
int i = 0;