diff options
author | smatz <smatz@openttd.org> | 2009-05-18 19:32:16 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-18 19:32:16 +0000 |
commit | 70aab8bf0487ef506afbeaa6cb8e46309387df84 (patch) | |
tree | e0c2fdd130c4c93d249ca7ecb2860e454d6b4e7f /src/autoreplace_cmd.cpp | |
parent | a0ff6363e6429fded7bd39adacd14a191ef00526 (diff) | |
download | openttd-70aab8bf0487ef506afbeaa6cb8e46309387df84.tar.xz |
(svn r16354) -Codechange: use 'new' pool accessors and methods for Engine too
Diffstat (limited to 'src/autoreplace_cmd.cpp')
-rw-r--r-- | src/autoreplace_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp index 066f6bac7..2b035cbfa 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -42,7 +42,7 @@ bool CheckAutoreplaceValidity(EngineID from, EngineID to, CompanyID company) { /* First we make sure that it's a valid type the user requested * check that it's an engine that is in the engine array */ - if (!IsEngineIndex(from) || !IsEngineIndex(to)) return false; + if (!Engine::IsValidID(from) || !Engine::IsValidID(to)) return false; /* we can't replace an engine into itself (that would be autorenew) */ if (from == to) return false; |