summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/koopatlas/pathmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp
index 032d40b..abcfd76 100644
--- a/src/koopatlas/pathmanager.cpp
+++ b/src/koopatlas/pathmanager.cpp
@@ -657,12 +657,12 @@ void dWMPathManager_c::moveThroughPath() {
OSReport("Activating world change %d\n", to->worldID);
const dKPWorldDef_s *world = dScKoopatlas_c::instance->mapData.findWorldDef(to->worldID);
if (world) {
- if (strncmp(save->newerWorldName, world->name, 36) == 0) {
+ if (strncmp(save->newerWorldName, world->name, 32) == 0) {
OSReport("Already here\n");
} else {
OSReport("Found!\n");
- strncpy(save->newerWorldName, world->name, 36);
- save->newerWorldName[35] = 0;
+ strncpy(save->newerWorldName, world->name, 32);
+ save->newerWorldName[31] = 0;
save->newerWorldID = world->worldID;
save->currentMapMusic = world->trackID;