Skip to content

Commit 1e43fa1

Browse files
committed
Added assertion for unexpected column counts.
1 parent eab7fee commit 1e43fa1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ReplayMenu.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ void PopulateReplayFileListbox(GameWindow *listbox)
375375
GadgetListBoxAddEntryText(listbox, header.versionString, color, insertionIndex, 3);
376376
GadgetListBoxAddEntryText(listbox, mapStr, mapColor, insertionIndex, 4);
377377
}
378+
else
379+
{
380+
DEBUG_CRASH(("Replay menu uses %d columns; expected either 4 or 5", columns));
381+
}
378382

379383
// TheSuperHackers @performance Now stops processing when the list is full.
380384
if (insertionIndex == listboxLength - 1)

0 commit comments

Comments
 (0)