Skip to content

Commit 491fa68

Browse files
committed
NRE fix
1 parent bed310d commit 491fa68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/MapEditor/Managers/EventManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static class EventManager
1010
/// <summary>Called after Rust Asset Bundles are unloaded from the editor. </summary>
1111
public static event AssetManagerCallback BundlesDisposed;
1212

13-
public static void OnBundlesLoaded() => BundlesLoaded.Invoke();
13+
public static void OnBundlesLoaded() => BundlesLoaded?.Invoke();
1414

15-
public static void OnBundlesDisposed() => BundlesDisposed.Invoke();
15+
public static void OnBundlesDisposed() => BundlesDisposed?.Invoke();
1616
}

0 commit comments

Comments
 (0)