mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Hide NRE warning in Rider
its terrible but I've never seen it NRE so 🤷♂️
This commit is contained in:
parent
495441be06
commit
ba6676b625
@ -62,6 +62,8 @@ namespace ConformalDecals {
|
|||||||
// Button for selecting a flag
|
// Button for selecting a flag
|
||||||
// This is a bit of a hack to bring up the stock flag selection menu
|
// This is a bit of a hack to bring up the stock flag selection menu
|
||||||
// When its done, it calls OnCustomFlagSelected()
|
// When its done, it calls OnCustomFlagSelected()
|
||||||
|
|
||||||
|
// ReSharper disable once PossibleNullReferenceException
|
||||||
var flagBrowser = (Instantiate((Object) (new FlagBrowserGUIButton(null, null, null, null)).FlagBrowserPrefab) as GameObject).GetComponent<FlagBrowser>();
|
var flagBrowser = (Instantiate((Object) (new FlagBrowserGUIButton(null, null, null, null)).FlagBrowserPrefab) as GameObject).GetComponent<FlagBrowser>();
|
||||||
flagBrowser.OnFlagSelected = OnCustomFlagSelected;
|
flagBrowser.OnFlagSelected = OnCustomFlagSelected;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user