Add #7525: Allow autoreplace with same model vehicle

This commit is contained in:
Niels Martin Hansen
2019-09-08 10:54:46 +02:00
committed by rubidium42
parent 4c1406a4b5
commit 2fee8ecdda
2 changed files with 12 additions and 4 deletions

View File

@@ -60,9 +60,6 @@ bool CheckAutoreplaceValidity(EngineID from, EngineID to, CompanyID company)
{
assert(Engine::IsValidID(from) && Engine::IsValidID(to));
/* we can't replace an engine into itself (that would be autorenew) */
if (from == to) return false;
const Engine *e_from = Engine::Get(from);
const Engine *e_to = Engine::Get(to);
VehicleType type = e_from->type;