mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-05 22:04:57 +00:00
(svn r236) -Fix: random crash when player-face was displayed in error-dialog
This commit is contained in:
parent
ef5202a361
commit
add49120dd
@ -428,7 +428,7 @@ static void ErrmsgWndProc(Window *w, WindowEvent *e)
|
||||
_errmsg_message_1,
|
||||
238);
|
||||
} else {
|
||||
Player *p = DEREF_PLAYER(_errmsg_decode_params[2]);
|
||||
Player *p = DEREF_PLAYER(GET_DPARAMX8(_errmsg_decode_params,2));
|
||||
DrawPlayerFace(p->face, p->player_color, 2, 16);
|
||||
|
||||
DrawStringMultiCenter(
|
||||
|
Loading…
Reference in New Issue
Block a user