We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1869b00 commit baf2f95Copy full SHA for baf2f95
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