1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

(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)

This commit is contained in:
Darkvater
2005-05-02 17:14:31 +00:00
parent 8f6b3154e5
commit 63784c5b5a

View File

@@ -716,7 +716,8 @@ void ResetWindowSystem(void)
{ {
UnInitWindowSystem(); UnInitWindowSystem();
InitWindowSystem(); InitWindowSystem();
memset(&_thd, 0, sizeof(TileHighlightData)); _thd.pos.x = 0;
_thd.pos.y = 0;
} }
static void DecreaseWindowCounters(void) static void DecreaseWindowCounters(void)