Skip to content

Commit 64be31d

Browse files
committed
assertion for clang
1 parent 72056df commit 64be31d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qtfred/src/mission/Editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ int Editor::common_object_delete(int obj) {
10771077
return 1;
10781078
}
10791079

1080-
Assert((i >= 0) && (i < MAX_SHIPS));
1080+
Assertion((i >= 0) && (i < MAX_SHIPS), "Invalid ship index %d in player-start delete path", i); // NOLINT(readability-simplify-boolean-expr)
10811081
sprintf(msg, "Player %d", i + 1);
10821082
name = msg;
10831083
r = reference_handler(name, sexp_ref_type::PLAYER, obj);

0 commit comments

Comments
 (0)