From 63784c5b5a57f571f23fa1c6a5a830d44864894e Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 2 May 2005 17:14:31 +0000 Subject: [PATCH] (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) --- window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/window.c b/window.c index 1b4b3773c2..0212694551 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)