Client crash on Escape.
After I press Escape client crashes with error:
- Code: Select all
haven.UI$UIException: Wdgmsg sender (haven.LocalMiniMap) is not in rwidgets
at haven.UI.wdgmsg(UI.java:197)
at haven.Widget.wdgmsg(Widget.java:480)
at haven.Widget.wdgmsg(Widget.java:482)
at haven.GameUI.wdgmsg(GameUI.java:641)
at haven.Widget.wdgmsg(Widget.java:482)
at haven.Window.wdgmsg(Window.java:219)
at haven.Widget.wdgmsg(Widget.java:475)
at haven.Window.type(Window.java:227)
at haven.Widget.type(Widget.java:596)
at haven.ConsoleHost.type(ConsoleHost.java:120)
at haven.Widget.type(Widget.java:596)
at haven.ConsoleHost.type(ConsoleHost.java:120)
at haven.UI.type(UI.java:227)
at haven.HavenPanel.dispatch(HavenPanel.java:401)
at haven.HavenPanel.run(HavenPanel.java:438)
at java.lang.Thread.run(Thread.java:745)
. John, since minimap is purely client-side, it has no server-side id, so client crashes when this window tries to close normally. You need to catch esc symbol in type (or globtype, can't remember) and just call ui.destroy(this);