summaryrefslogtreecommitdiff
path: root/src/KingSystem/Ecosystem/ecoSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/KingSystem/Ecosystem/ecoSystem.cpp')
-rw-r--r--src/KingSystem/Ecosystem/ecoSystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/Ecosystem/ecoSystem.cpp b/src/KingSystem/Ecosystem/ecoSystem.cpp
index 0e6fded4..fd08443c 100644
--- a/src/KingSystem/Ecosystem/ecoSystem.cpp
+++ b/src/KingSystem/Ecosystem/ecoSystem.cpp
@@ -119,8 +119,8 @@ s32 Ecosystem::getMapArea(const EcoMapInfo& info, f32 posX, f32 posZ) const {
if (val0 >= val1)
return -1;
- Segment* segmentEnd = reinterpret_cast<Segment*>((char*)info.mRows + 2 * val1);
- Segment* segment = reinterpret_cast<Segment*>((char*)info.mRows + 2 * val0);
+ auto* segmentEnd = reinterpret_cast<const Segment*>(info.mRows + 2 * val1);
+ auto* segment = reinterpret_cast<const Segment*>(info.mRows + 2 * val0);
s32 totalLength = 0;
while (true) {
totalLength += segment->length;