summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_vehicle.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-08-19 20:20:20 +0000
committeryexo <yexo@openttd.org>2010-08-19 20:20:20 +0000
commitca0cd109f21a4f3cf54e630287f39951e4e5c8c3 (patch)
tree42e5366adad6e9dab822d377074bfa74c95e2bc4 /src/ai/api/ai_vehicle.hpp
parent588d3c4ff830ca7e405bbc4315405784dd1319a3 (diff)
downloadopenttd-ca0cd109f21a4f3cf54e630287f39951e4e5c8c3.tar.xz
(svn r20568) -Codechange: change the value of AIVehicle::VEHICLE_INVALID and use it as return value instead of ::INVALID_VEHICLE
Diffstat (limited to 'src/ai/api/ai_vehicle.hpp')
-rw-r--r--src/ai/api/ai_vehicle.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_vehicle.hpp b/src/ai/api/ai_vehicle.hpp
index 9f3f43a5c..126503e21 100644
--- a/src/ai/api/ai_vehicle.hpp
+++ b/src/ai/api/ai_vehicle.hpp
@@ -97,7 +97,7 @@ public:
VS_INVALID = 0xFF, ///< An invalid vehicle state.
};
- static const int VEHICLE_INVALID = -1; ///< Invalid VehicleID.
+ static const VehicleID VEHICLE_INVALID = 0xFFFF; ///< Invalid VehicleID.
/**
* Checks whether the given vehicle is valid and owned by you.