mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-04-30 09:01:41 -04:00
added ASSERT for building node deletion, to capture unwanted behavior during development .
This commit is contained in:
parent
87503d9ff9
commit
b20219a8e1
1 changed files with 2 additions and 0 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue