fix compiling

This commit is contained in:
Aaron Kimbre 2024-06-06 08:50:00 -05:00
parent 8f00f1601c
commit 5ba37ff7d6
3 changed files with 6 additions and 4 deletions

View File

@ -8,8 +8,8 @@ enum class eDeletionRestrictionsCheckType : uint32_t {
EXCLUDE_LOTS,
ANY_OF_THESE,
ALL_OF_THESE,
ZONE,
RESTRICTED,
WHILE_IN_ZONE,
ALWAYS_RESTRICTED,
MAX
};

View File

@ -35,7 +35,7 @@ void CDDeletionRestrictionsTable::LoadValuesFromDatabase() {
}
}
}
entry.checkType = static_cast<eDeletionRestrictionsCheckType>(tableData.getIntField("checkType", 6));
entry.checkType = static_cast<eDeletionRestrictionsCheckType>(tableData.getIntField("checkType", 6)); // MAX
entries.push_back(entry);
tableData.nextRow();

View File

@ -38,4 +38,6 @@ set(DDATABASE_CDCLIENTDATABASE_CDCLIENTTABLES_SOURCES "CDActivitiesTable.cpp"
"CDSkillBehaviorTable.cpp"
"CDTamingBuildPuzzleTable.cpp"
"CDVendorComponentTable.cpp"
"CDZoneTableTable.cpp" PARENT_SCOPE)
"CDZoneTableTable.cpp"
"CDDeletionRestrictionsTable.cpp"
PARENT_SCOPE)