pardeike / Zombieland

Rimworld Mod featuring zombie hordes
https://www.patreon.com/pardeike
MIT License
55 stars 22 forks source link

NullReferenceException in PostMapInit #28

Closed pardeike closed 3 years ago

pardeike commented 3 years ago

https://github.com/pardeike/Zombieland/blob/6b63219756be15fb70e5725c296de9e762804cfb/Source/Patches.cs#L1091

Error in PostMapInit() for Jaydris: System.NullReferenceException: Object reference not set to an instance of an object
  at ZombieLand.Patches+Building_Door_PawnCanOpen_Patch.Postfix (RimWorld.Building_Door __instance, Verse.Pawn p, System.Boolean& __result) [0x0009e] in <850ec70702be4406840dfc594e714640>:0 
  at (wrapper dynamic-method) RimWorld.Building_Door.RimWorld.Building_Door.PawnCanOpen_Patch1(RimWorld.Building_Door,Verse.Pawn)
  at Verse.AI.Pawn_PathFollower.PawnCanOccupy (Verse.IntVec3 c) [0x00034] in <b1a2d2c07c3c4dea8ce98e07a9c8d161>:0 
  at (wrapper dynamic-method) Verse.AI.Pawn_PathFollower.Verse.AI.Pawn_PathFollower.StartPath_Patch0(Verse.AI.Pawn_PathFollower,Verse.LocalTargetInfo,Verse.AI.PathEndMode)
  at Verse.AI.Pawn_PathFollower.TryResumePathingAfterLoading () [0x00008] in <b1a2d2c07c3c4dea8ce98e07a9c8d161>:0 
  at Verse.Pawn.PostMapInit () [0x00006] in <b1a2d2c07c3c4dea8ce98e07a9c8d161>:0 
  at (wrapper dynamic-method) Verse.Map.Verse.Map.FinalizeInit_Patch1(Verse.Map)
pardeike commented 3 years ago

https://discord.com/channels/131466550938042369/308925838294777856/833334258516492338