mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 15:30:00 +00:00
(svn r24159) -Fix: If you spent hard work on finding an available object ID, you should probably also use it instead of always 0.
This commit is contained in:
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
Block a user