summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-02 17:14:31 +0000
committerDarkvater <darkvater@openttd.org>2005-05-02 17:14:31 +0000
commit63784c5b5a57f571f23fa1c6a5a830d44864894e (patch)
tree25b833f5e00c96ddc38bb7eee85c5113fb0da8f9
parent8f6b3154e571ee6617c90b66a79bb7829d28baad (diff)
downloadopenttd-63784c5b5a57f571f23fa1c6a5a830d44864894e.tar.xz
(svn r2248) - Fix (regression): fix crashing of game when joining a dedicated server (only reset _thd.pos, not the whole structure; as done in revision 2241 to fix another crash)
-rw-r--r--window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/window.c b/window.c
index 1b4b3773c..021269455 100644
--- a/window.c
+++ b/window.c
@@ -716,7 +716,8 @@ void ResetWindowSystem(void)
{
UnInitWindowSystem();
InitWindowSystem();
- memset(&_thd, 0, sizeof(TileHighlightData));
+ _thd.pos.x = 0;
+ _thd.pos.y = 0;
}
static void DecreaseWindowCounters(void)