diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-02 17:14:31 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-02 17:14:31 +0000 |
commit | 63784c5b5a57f571f23fa1c6a5a830d44864894e (patch) | |
tree | 25b833f5e00c96ddc38bb7eee85c5113fb0da8f9 | |
parent | 8f6b3154e571ee6617c90b66a79bb7829d28baad (diff) | |
download | openttd-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |