Fix null ref in reload-in-place
This commit is contained in:
@@ -59,7 +59,7 @@ public static class ReloadInPlacePatches
|
|||||||
[PatchPostfix]
|
[PatchPostfix]
|
||||||
public static void Postfix(MagazineClass __result)
|
public static void Postfix(MagazineClass __result)
|
||||||
{
|
{
|
||||||
if (IsReloading)
|
if (__result != null && IsReloading)
|
||||||
{
|
{
|
||||||
FoundMagazine = __result;
|
FoundMagazine = __result;
|
||||||
FoundAddress = FoundMagazine.Parent;
|
FoundAddress = FoundMagazine.Parent;
|
||||||
|
Reference in New Issue
Block a user