--- a/rts/Game/WebbarBrowser.h +++ b/rts/Game/WebbarBrowser.h @@ -347,7 +347,7 @@ status = 8; } else if (order.kind == 1003) { command = Command(-def->id); // one unit per click; SHIFT means five to a native factory - } else if (!def->IsBuildingUnit() || !std::isfinite(order.x) || !std::isfinite(order.z) || order.x < 0 || order.z < 0 || order.x >= mapDims.mapx * SQUARE_SIZE || order.z >= mapDims.mapy * SQUARE_SIZE) { + } else if (!def->IsImmobileUnit() || !std::isfinite(order.x) || !std::isfinite(order.z) || order.x < 0 || order.z < 0 || order.x >= mapDims.mapx * SQUARE_SIZE || order.z >= mapDims.mapy * SQUARE_SIZE) { status = 3; } else { BuildInfo build(def, buildPos, (order.options >> 8) & 3);