From 1b0d3e3034b4f7a43d4d32692861a1d07bb0f50c Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 22 Apr 2012 16:27:41 +0000 Subject: (svn r24159) -Fix: If you spent hard work on finding an available object ID, you should probably also use it instead of always 0. --- src/object_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object_gui.cpp b/src/object_gui.cpp index e18f6c4f9..241fcdca6 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -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; } } -- cgit v1.2.3-70-g09d2