(svn r24159) -Fix: If you spent hard work on finding an available object ID, you should probably also use it instead of always 0.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
frosch 12 years ago
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…
Cancel
Save