Fix a rare crash in the gui options screen. (Thanks LarsLHansson)

This commit is contained in:
UnknownShadow200 2016-01-10 01:27:42 +11:00
parent d4fcdf3199
commit 0f215ef4b4

View file

@ -63,6 +63,14 @@ namespace ClassicalSharp {
g.Drawer2D.UseBitmappedChat = v == "no";
Options.Set( OptionsKey.ArialChatFont, v == "yes" );
game.Events.RaiseChatFontChanged();
if( inputWidget != null ) {
inputWidget.Dispose(); inputWidget = null;
}
if( descWidget != null ) {
descWidget.Dispose(); descWidget = null;
}
g.RefreshHud();
Recreate();
} ),