diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-16 14:44:59 +0100 |
---|---|---|
committer | shfil <filip.gawin@zoho.com> | 2021-01-17 21:32:54 +0100 |
commit | 5a47379bf5f011a65c1d0f88a0cb5f2130feb9db (patch) | |
tree | d3b13533c6058d2b26035d180e4a7e8b735c283c /src/core/Zones.h | |
parent | vehicle fixes (diff) | |
download | re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.gz re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.bz2 re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.lz re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.xz re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.tar.zst re3-5a47379bf5f011a65c1d0f88a0cb5f2130feb9db.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Zones.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Zones.h b/src/core/Zones.h index 6549dad5..aa0466e8 100644 --- a/src/core/Zones.h +++ b/src/core/Zones.h @@ -105,8 +105,8 @@ public: static void SetPedGroup(uint16 zoneid, uint8 day, uint16 pedgroup); static int16 FindAudioZone(CVector *pos); static eLevelName FindZoneForPoint(const CVector &pos); - static CZone *GetPointerForZoneIndex(int32 i) { return i == -1 ? nil : &ZoneArray[i]; } - static int32 GetIndexForZonePointer(CZone *zone) { return zone == nil ? -1 : zone - ZoneArray; } + static CZone *GetPointerForZoneIndex(ssize_t i) { return i == -1 ? nil : &ZoneArray[i]; } + static ssize_t GetIndexForZonePointer(CZone *zone) { return zone == nil ? -1 : zone - ZoneArray; } static void AddZoneToAudioZoneArray(CZone *zone); static void InitialiseAudioZoneArray(void); static void SaveAllZones(uint8 *buffer, uint32 *length); |