Fix crash in turbolifts built on any z-level other than "1"

Port of https://github.com/Baystation12/Baystation12/pull/16941
* Turbolift auto-mapping code assumed that all lift's first floor would be on z=1.  Fixed so it picks the first floor instead of the zth floor from the floor list.
This commit is contained in:
Leshana
2017-04-16 21:51:12 -04:00
parent 95b9dde94a
commit b5dbe8492c

View File

@@ -221,7 +221,7 @@
var/turf/T = locate(int_panel_x, int_panel_y, uz)
lift.control_panel_interior = new(T, lift)
lift.control_panel_interior.set_dir(udir)
lift.current_floor = lift.floors[uz]
lift.current_floor = lift.floors[1]
lift.open_doors()