summaryrefslogtreecommitdiffstats
path: root/src/core/Zones.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-23 21:04:38 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-23 21:04:38 +0100
commitd28e9a7b629fca3904336cd2d7ba74b925249fea (patch)
treec30c37726139bf7125d858f3c29e4090a2d6310e /src/core/Zones.h
parentscript fixes (diff)
parenttxd store (diff)
downloadre3-d28e9a7b629fca3904336cd2d7ba74b925249fea.tar
re3-d28e9a7b629fca3904336cd2d7ba74b925249fea.tar.gz
re3-d28e9a7b629fca3904336cd2d7ba74b925249fea.tar.bz2
re3-d28e9a7b629fca3904336cd2d7ba74b925249fea.tar.lz
re3-d28e9a7b629fca3904336cd2d7ba74b925249fea.tar.xz
re3-d28e9a7b629fca3904336cd2d7ba74b925249fea.tar.zst
re3-d28e9a7b629fca3904336cd2d7ba74b925249fea.zip
Diffstat (limited to 'src/core/Zones.h')
-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);