(svn r15036) -Fix: use the same value for 'random' through-out the code for PlantTree

This commit is contained in:
truebrain
2009-01-12 18:15:18 +00:00
parent 324e256dfd
commit c666cf5a49
2 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ class BuildTreesWindow : public Window
{
uint16 base;
uint16 count;
int tree_to_plant;
uint tree_to_plant;
enum BuildTreesWidgets {
BTW_CLOSE,
@@ -105,7 +105,7 @@ public:
case BTW_TYPE_RANDOM: // tree of random type.
if (HandlePlacePushButton(this, BTW_TYPE_RANDOM, SPR_CURSOR_TREE, VHM_RECT, NULL)) {
this->tree_to_plant = -1;
this->tree_to_plant = UINT_MAX;
}
break;