Skip to content

Commit bb7aebd

Browse files
authored
Merge pull request #5718 from ab9rf/sort-block-events
add covering default case to `Maps::SortBlockEvents`
2 parents 97e2fc5 + 38ed272 commit bb7aebd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

library/modules/Maps.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,9 @@ bool Maps::SortBlockEvents(df::map_block *block,
655655
if (priorities)
656656
priorities->push_back((df::block_square_event_designation_priorityst *)evt);
657657
break;
658+
default:
659+
assert("Unhandled block event type" && false); // FIXME temporary - replace with NONE case after structure are updated
660+
break;
658661
}
659662
}
660663
return true;

0 commit comments

Comments
 (0)