fixup ignore_units option of teleport

This was broken in this commit:
18159f0a6b4056ff4609ee4dcc8be4ff0018494f

and caused a gcc warning which was fixed in this commit:
ffbf683eb07ec320cea55f40d2ef5c740b422a34