summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2PoolDef.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-01 23:04:04 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-01 23:04:04 +0100
commitc2efba6907fab934a04959b9bb644cf7141cc955 (patch)
treec047244f99870e44a7a5d7e733c2857434c03765 /src/T2DLL/T2PoolDef.cpp
parent1eb8da84d77d0c865623421069ec38bfc7b0d461 (diff)
downloadt2win-c2efba6907fab934a04959b9bb644cf7141cc955.tar.gz
t2win-c2efba6907fab934a04959b9bb644cf7141cc955.zip
matched T2DLL as well as i can
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2PoolDef.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/T2DLL/T2PoolDef.cpp b/src/T2DLL/T2PoolDef.cpp
index c60afbb..558fdd7 100644
--- a/src/T2DLL/T2PoolDef.cpp
+++ b/src/T2DLL/T2PoolDef.cpp
@@ -1,4 +1,5 @@
#include "CResFile.h"
+#include "T2PeopleType.h"
#include "T2PoolDef.h"
#include "T2WorldPlugin.h"
@@ -109,7 +110,7 @@ T2PoolDef::T2PoolDef(CResFile &resFile, T2WorldPlugin *worldPlugin) {
resFile >> m20;
resFile >> mNumOfDemand;
#line 129
- _ASSERT(mNumOfDemand <= 8);
+ _ASSERT(mNumOfDemand <= kMaxDemand);
mDemand = new DemandInfo[mNumOfDemand];
for (i = 0; i < mNumOfDemand; i++) {