Fix null ref in reload-in-place

This commit is contained in:
Tyfon
2024-09-12 02:43:25 -07:00
parent 1e2abaab64
commit a9db6ce524

View File

@@ -59,7 +59,7 @@ public static class ReloadInPlacePatches
[PatchPostfix]
public static void Postfix(MagazineClass __result)
{
if (IsReloading)
if (__result != null && IsReloading)
{
FoundMagazine = __result;
FoundAddress = FoundMagazine.Parent;