Lua: Fix issue with wesnoth.put_recall_unit

This closes #758
This commit is contained in:
Celtic Minstrel 2016-08-24 14:52:20 -04:00
parent 824655c67f
commit 91ed4c3108

View file

@ -2088,7 +2088,7 @@ int game_lua_kernel::intf_put_recall_unit(lua_State *L)
if(luaW_isunit(L, 1)) {
lu = luaW_checkunit_ref(L, 1);
u = lu->get_shared();
if(lu->on_recall_list() == side) {
if(lu->on_recall_list() && lu->on_recall_list() == side) {
return luaL_argerror(L, 1, "unit already on recall list");
}
} else {