summaryrefslogtreecommitdiffstats
path: root/src/control/Gangs.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-06-27 22:45:06 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-06-27 22:45:06 +0200
commit1c7fee4b9fc1684f83b62705573a34218b3159d3 (patch)
treeb39c31b36fd8a81bb6abf2c2089d2be5fefad86e /src/control/Gangs.h
parentfixed newline (diff)
downloadre3-1c7fee4b9fc1684f83b62705573a34218b3159d3.tar
re3-1c7fee4b9fc1684f83b62705573a34218b3159d3.tar.gz
re3-1c7fee4b9fc1684f83b62705573a34218b3159d3.tar.bz2
re3-1c7fee4b9fc1684f83b62705573a34218b3159d3.tar.lz
re3-1c7fee4b9fc1684f83b62705573a34218b3159d3.tar.xz
re3-1c7fee4b9fc1684f83b62705573a34218b3159d3.tar.zst
re3-1c7fee4b9fc1684f83b62705573a34218b3159d3.zip
Diffstat (limited to 'src/control/Gangs.h')
-rw-r--r--src/control/Gangs.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/control/Gangs.h b/src/control/Gangs.h
index 96066a3e..db14ca64 100644
--- a/src/control/Gangs.h
+++ b/src/control/Gangs.h
@@ -36,7 +36,7 @@ public:
GANG_HOODS,
GANG_7,
GANG_8,
- TOTAL_GANGS
+ NUM_GANGS
};
static void Initialize(void);
static void SetGangVehicleModel(int16, int);
@@ -49,14 +49,5 @@ public:
private:
static CGangInfo* GetGangInfo(int16 gang) { return &Gang[gang]; }
- static CGangInfo(&Gang)[TOTAL_GANGS];
+ static CGangInfo(&Gang)[NUM_GANGS];
};
-
-struct tGangSaveData
-{
- char tag[4];
- int32 size;
- CGangInfo gangs[CGangs::TOTAL_GANGS];
-};
-
-static_assert(sizeof(tGangSaveData) == 0x98, "tGangSaveData: error");