fixed list issue after removing element.

This commit is contained in:
Hielke Morsink committed 2016-01-01 21:28:57 +01:00
1 parent d226012d94
commit 2a3aefdb4e
1 file changed
+1
+1
View File
@@ -184,6 +184,7 @@ void remove_element(int index)
rct_map_element *mapElement = map_get_first_element_at(window_tile_inspector_tile_x, window_tile_inspector_tile_y);
mapElement += index;
map_element_remove(mapElement);
window_tile_inspector_item_count--;
}
// Swap element with its parent