mirror of
https://github.com/zeldaret/botw
synced 2026-05-23 06:54:18 -04:00
ksys/eco: Clean up casts in Ecosystem::getMapArea
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user