summaryrefslogtreecommitdiffstats
path: root/src/core/Zones.h
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2021-01-23 01:34:15 +0100
committerGitHub <noreply@github.com>2021-01-23 01:34:15 +0100
commit10120eb12fb91db551a00839ab30d7542634b87d (patch)
treee8c670366d80e62776b0856466625b50af97c0c7 /src/core/Zones.h
parentfix config.h (diff)
parentIncludes overhaul, fix some compiler warnings (diff)
downloadre3-10120eb12fb91db551a00839ab30d7542634b87d.tar
re3-10120eb12fb91db551a00839ab30d7542634b87d.tar.gz
re3-10120eb12fb91db551a00839ab30d7542634b87d.tar.bz2
re3-10120eb12fb91db551a00839ab30d7542634b87d.tar.lz
re3-10120eb12fb91db551a00839ab30d7542634b87d.tar.xz
re3-10120eb12fb91db551a00839ab30d7542634b87d.tar.zst
re3-10120eb12fb91db551a00839ab30d7542634b87d.zip
Diffstat (limited to '')
-rw-r--r--src/core/Zones.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Zones.h b/src/core/Zones.h
index 5306d9f1..b987f009 100644
--- a/src/core/Zones.h
+++ b/src/core/Zones.h
@@ -103,8 +103,8 @@ public:
static void SetPedDensity(uint16 zoneid, uint8 day, uint16 peddensity);
static void SetPedGroup(uint16 zoneid, uint8 day, uint16 pedgroup);
static int16 FindAudioZone(CVector *pos);
- static CZone *GetPointerForZoneIndex(int32 i) { return i == -1 ? nil : &NavigationZoneArray[i]; }
- static int32 GetIndexForZonePointer(CZone *zone) { return zone == nil ? -1 : zone - NavigationZoneArray; }
+ static CZone *GetPointerForZoneIndex(ssize_t i) { return i == -1 ? nil : &NavigationZoneArray[i]; }
+ static ssize_t GetIndexForZonePointer(CZone *zone) { return zone == nil ? -1 : zone - NavigationZoneArray; }
static void AddZoneToAudioZoneArray(CZone *zone);
static void InitialiseAudioZoneArray(void);
static void SaveAllZones(uint8 *buffer, uint32 *length);