Change _scaled_tick_counter to uint64

This commit is contained in:
Jonathan G Rennison
2022-12-11 00:04:12 +00:00
parent ce9ccdb72a
commit f4d775cad3
3 changed files with 4 additions and 4 deletions

View File

@@ -1474,7 +1474,7 @@ void CallVehicleTicks()
Vehicle *v = nullptr;
SCOPE_INFO_FMT([&v], "CallVehicleTicks -> OnPeriodic: %s", scope_dumper().VehicleInfo(v));
for (size_t i = _scaled_tick_counter & 0x1FF; i < Vehicle::GetPoolSize(); i += 0x200) {
for (size_t i = (size_t)(_scaled_tick_counter & 0x1FF); i < Vehicle::GetPoolSize(); i += 0x200) {
v = Vehicle::Get(i);
if (v == nullptr) continue;