From 5bbf442cd0f698d57558b81b386864e8e98dec40 Mon Sep 17 00:00:00 2001 From: Pavlos Touboulidis Date: Sat, 10 May 2014 17:56:23 +0300 Subject: [PATCH] Remove reference to Game.modData --- OpenRA.Game/Graphics/CursorProvider.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Graphics/CursorProvider.cs b/OpenRA.Game/Graphics/CursorProvider.cs index fac329dc1d..f5313905df 100644 --- a/OpenRA.Game/Graphics/CursorProvider.cs +++ b/OpenRA.Game/Graphics/CursorProvider.cs @@ -22,10 +22,12 @@ namespace OpenRA.Graphics Dictionary cursors; Cache palettes; - public Action OnProgress = () => { if (Game.modData != null && Game.modData.LoadScreen != null) Game.modData.LoadScreen.Display(); }; + public Action OnProgress; public CursorProvider(ModData modData) { + OnProgress = () => { if (modData.LoadScreen != null) modData.LoadScreen.Display(); }; + var sequenceFiles = modData.Manifest.Cursors; cursors = new Dictionary();