Implemented SoldierID type to replace SOLDIERTYPE->ubID

Goal is to convert all use of SOLDIERTYPE->ubID and any other ID fields that reference the same ID to a safer type than UINT16. Same with any function that's supposed to take ubID
This commit is contained in:
Asdow
2024-11-13 01:29:36 +02:00
parent d6370b7463
commit aad6ed8297
2 changed files with 72 additions and 2 deletions
+1 -1
View File
@@ -1103,7 +1103,7 @@ public:
// properly until it is all fixed and the files updated.
public:
// ID
UINT16 ubID;
SoldierID ubID;
CHAR16 name[ 10 ];
INT16 GetMaxDistanceVisible(INT32 sGridNo = -1, INT8 bLevel = -1, int calcAsType = -1);