From e791a442902c1d630d298efed486c7a8579648d4 Mon Sep 17 00:00:00 2001 From: Bob Date: Tue, 13 Apr 2010 22:05:15 +1200 Subject: [PATCH] remove unnecessary ref to world in Chat --- OpenRA.Game/Chat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Chat.cs b/OpenRA.Game/Chat.cs index 910f5fdcc5..892153233d 100644 --- a/OpenRA.Game/Chat.cs +++ b/OpenRA.Game/Chat.cs @@ -68,7 +68,7 @@ namespace OpenRA public void AddLine(Color c, string from, string text) { recentLines.Add(Tuple.New(c, from, text)); - var eva = Game.world.WorldActor.Info.Traits.Get(); + var eva = Rules.Info["world"].Traits.Get(); Sound.Play(eva.ChatBeep); while (recentLines.Count > logLength) recentLines.RemoveAt(0); }