added ASSERT for building node deletion, to capture unwanted behavior during development .

This commit is contained in:
Zero Fanker 2024-12-16 12:14:27 -05:00
parent 87503d9ff9
commit b20219a8e1

View file

@ -62,6 +62,8 @@ inline void DeleteBuildingNodeFrom(const CString& house, const int index, CIniFi
{
auto const nodeCount = ini.GetInteger(house, "NodeCount");
ASSERT(nodeCount > 0);
ASSERT(index >= 0);
ASSERT(index < nodeCount);
// override value from current ID
CString prevNodeName, nextNodeName, lastData;
for (auto i = index; i < nodeCount - 1; i++) {