Fix duplicate condition in Gui::getAnyUnit()

develop
lethosor 2018-05-11 09:58:40 -04:00
parent 272cdcb2b5
commit 10abece564
1 changed files with 1 additions and 1 deletions

@ -1024,7 +1024,7 @@ df::unit *Gui::getAnyUnit(df::viewscreen *top)
switch (ui->main.mode) {
case ViewUnits:
{
if (!ui_selected_unit || !ui_selected_unit)
if (!ui_selected_unit || !world)
return NULL;
return vector_get(world->units.active, *ui_selected_unit);