mirror of https://github.com/OpenTTD/OpenTTD
(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)
parent
8f6b3154e5
commit
63784c5b5a
3
window.c
3
window.c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue