changeset 8831:61f2c9cd0544 draft

(svn r12579) -Change: reset cursor when the Plant trees GUI is opened
author smatz <smatz@openttd.org>
date Sat, 05 Apr 2008 12:30:48 +0000
parents 981a95f3204d
children 870ff040ec3e
files src/misc_gui.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -337,6 +337,10 @@
 static void BuildTreesWndProc(Window *w, WindowEvent *e)
 {
 	switch (e->event) {
+		case WE_CREATE:
+			ResetObjectToPlace();
+			break;
+
 		case WE_PAINT: {
 			DrawWindowWidgets(w);