fix unit move+attack aborted, 21961

stupid c++ allows int to bool implicit cast.