Do not call get_closest_tile on empty areas
commit1d54dfe641a23120e28975b08ff90b9188a267b7
authorcirdan <cirdansw@gmail.com>
Wed, 20 Dec 2017 20:07:55 +0000 (20 21:07 +0100)
committercirdan <cirdansw@gmail.com>
Wed, 20 Dec 2017 20:07:55 +0000 (20 21:07 +0100)
treea64e079b17412153dd2c3acf1e16fc784f5201ef
parentbadadc26a35e0055d716db93d27e4ff3b95875d5
Do not call get_closest_tile on empty areas

BaseStation::GetClosestTile was the only caller of get_closest_tile
that could pass it an empty area. Check for an empty area there,
so that get_closest_tile does not have to.
src/base_station_base.h
src/map/tilearea.h