diff options
author | truebrain <truebrain@openttd.org> | 2009-01-12 18:15:18 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2009-01-12 18:15:18 +0000 |
commit | 03725c057f70d261dfdb3ba94bc2e58883831f7b (patch) | |
tree | 5ad437eb3f4098a48052d3a21cfcf9577ee3dd56 /src/tree_gui.cpp | |
parent | 8fd3539f7b1add4390958388ba2dbea59108a353 (diff) | |
download | openttd-03725c057f70d261dfdb3ba94bc2e58883831f7b.tar.xz |
(svn r15036) -Fix: use the same value for 'random' through-out the code for PlantTree
Diffstat (limited to 'src/tree_gui.cpp')
-rw-r--r-- | src/tree_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree_gui.cpp b/src/tree_gui.cpp index 5e3f47597..990f784da 100644 --- a/src/tree_gui.cpp +++ b/src/tree_gui.cpp @@ -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; |