Merge pull request #2303 from azchohfi/reloadAssetLinkFix

Reload asset link fix
This commit is contained in:
Steve 'Sly' Williams 2014-03-31 23:28:28 +10:00
commit 46ee45ddd1

View file

@ -563,6 +563,11 @@ namespace Microsoft.Xna.Framework.Content
{
foreach (var asset in LoadedAssets)
{
// This never executes as asset.Key is never null. This just forces the
// linker to include the ReloadAsset function when AOT compiled.
if (asset.Key == null)
ReloadAsset(asset.Key, Convert.ChangeType(asset.Value, asset.Value.GetType()));
#if WINDOWS_STOREAPP
var methodInfo = typeof(ContentManager).GetType().GetTypeInfo().GetDeclaredMethod("ReloadAsset");
#else