diff options
author | truelight <truelight@openttd.org> | 2004-09-13 18:42:45 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-09-13 18:42:45 +0000 |
commit | add49120dde81d212df460679bec15cbdd04a6a3 (patch) | |
tree | df9ea58091ae16b1e2e8215d17a6052542b58dc4 | |
parent | ef5202a36156a5a0258a5e95f689504bcd35ca6b (diff) | |
download | openttd-add49120dde81d212df460679bec15cbdd04a6a3.tar.xz |
(svn r236) -Fix: random crash when player-face was displayed in error-dialog
-rw-r--r-- | misc_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c index 77cca994d..3121e9e77 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -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( |