diff --git a/Source/Contents/NavigationRoute.cpp b/Source/Contents/NavigationRoute.cpp index 456a8e76..f1972cec 100644 --- a/Source/Contents/NavigationRoute.cpp +++ b/Source/Contents/NavigationRoute.cpp @@ -933,8 +933,10 @@ std::vector CNavigationManager::WriteStates() { // OFFSET: 0x00B888F0 // FUNCTION: fn_19378 NaviCell* CNaviData::GetCell(NaviCell* out) { - out->x = this->cellX; - out->y = this->cellY; + const int x = this->cellX; + const int y = this->cellY; + out->x = x; + out->y = y; return out; }