fix script error in relaunch rule when buying new clonk fails

install-platforms
Maikel de Vries 2017-07-06 10:12:30 +02:00
parent f56e10c082
commit d458b0a25a
1 changed files with 3 additions and 2 deletions

View File

@ -338,8 +338,9 @@ public func DoRelaunch(int plr, object clonk, array position, bool no_creation)
if (pay_plr == NO_OWNER)
pay_plr = plr;
new_clonk = base->~DoBuy(clonk_type, plr, pay_plr, clonk);
if (new_clonk)
new_clonk->Exit();
if (!new_clonk)
return;
new_clonk->Exit();
}
}
else