Merge pull request #10409 from Mailaender/fix-globalchat

Fixed all known crashes in GlobalChat
This commit is contained in:
abcdefg30
2016-01-04 15:42:14 +01:00
2 changed files with 14 additions and 3 deletions

View File

@@ -379,6 +379,9 @@ namespace OpenRA.Mods.Common.Widgets
void BindingAddImpl(object item)
{
if (makeWidget == null)
return;
var widget = makeWidget(item);
var scrollToBottom = autoScroll && ScrolledToBottom;