We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1869b00 + baf2f95 commit ffa1bb2Copy full SHA for ffa1bb2
1 file changed
code/object/waypoint.h
@@ -109,8 +109,8 @@ void waypoint_stuff_name(STR &dest, int waypoint_instance)
109
{
110
int wl_index, wp_index;
111
calc_waypoint_indexes(waypoint_instance, wl_index, wp_index);
112
- Assertion(wl_index >= 0, "Waypoint list must exist!");
113
- Assertion(Waypoint_lists.in_bounds(wp_index), "Waypoint index must be in bounds!");
+ Assertion(Waypoint_lists.in_bounds(wl_index), "Waypoint list index must be in bounds!");
+ Assertion(Waypoint_lists[wl_index].get_waypoints().in_bounds(wp_index), "Waypoint index must be in bounds!");
114
waypoint_stuff_name(dest, Waypoint_lists[wl_index].get_name(), wp_index + 1);
115
}
116
0 commit comments