(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)
authorDarkvater
Mon, 02 May 2005 17:14:31 +0000
changeset 1744 c999671a5740
parent 1743 882e7173493c
child 1745 1113e1272ca2
(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
--- a/window.c	Mon May 02 17:05:59 2005 +0000
+++ b/window.c	Mon May 02 17:14:31 2005 +0000
@@ -716,7 +716,8 @@
 {
 	UnInitWindowSystem();
 	InitWindowSystem();
-	memset(&_thd, 0, sizeof(TileHighlightData));
+	_thd.pos.x = 0;
+	_thd.pos.y = 0;
 }
 
 static void DecreaseWindowCounters(void)