mirror of https://github.com/OpenTTD/OpenTTD
(svn r24159) -Fix: If you spent hard work on finding an available object ID, you should probably also use it instead of always 0.
parent
c8ec47130d
commit
1b0d3e3034
|
@ -326,7 +326,7 @@ public:
|
|||
for (uint i = 0; i < ObjectClass::GetCount(_selected_object_class); i++) {
|
||||
const ObjectSpec *spec = ObjectClass::Get(_selected_object_class, i);
|
||||
if (spec->IsAvailable()) {
|
||||
this->SelectOtherObject(0);
|
||||
this->SelectOtherObject(i);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue