Skip to content

Commit 69d3377

Browse files
committed
* Fixes crash when changing edit mode while the INF editor is active.
1 parent 279c46d commit 69d3377

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

TheForceEngine/TFE_Editor/LevelEditor/infoPanel.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,12 +1024,11 @@ namespace LevelEditor
10241024
return (u32)s_sectorInfo.size();
10251025
}
10261026

1027-
// TODO: Debug why this happens.
1027+
// If the mode selection changed suddenly - due to the INF editor - abort.
10281028
SelectionListId selectType = selection_getCurrent();
10291029
if (s_editMode == LEDIT_SECTOR && selectType != SEL_SECTOR ||
10301030
s_editMode == LEDIT_WALL && selectType != SEL_SURFACE)
10311031
{
1032-
assert(0);
10331032
return 0;
10341033
}
10351034

0 commit comments

Comments
 (0)