Simple Zombies - Crash Fix CHANGELOG
====================================


Version 1.1 (community fix by chris22622)
-----------------------------------------
Approach
- Runtime patcher (Harmony-based) rather than a rebuild of the original
  mod. ZombiesMod_CrashFix.dll loads alongside the untouched original
  ZombiesMod.dll and applies three method patches at script construction.

Fixes
- Inventory.AddItem prefix patch: returns false instead of NRE-ing when
  called with a null InventoryItemBase.
- Inventory.ProcessKeys finalizer patch: swallows exceptions, including
  the explicit `throw new NullReferenceException("item")` the original
  author left in the crafting key handler.
- PlayerInventory.OnTick finalizer patch: catches any uncaught tick
  exception so SHVDN does not abort the script for the rest of the
  session. Surfaces a one-shot orange ticker for diagnostics.

Bug surfaced by
- RunningWildJr (gta5-mods comment, April 8 2026):
    "When crafting too much packaged food, I get an unhandled exception
     error in ZombiesMod.PlayerManagement.PlayerInventory
     (ArgumentNullException). After this the inventory menu stops working
     for the rest of the session."

Dependencies bundled
- 0Harmony.dll 2.3.3 (MIT licence, free to redistribute).


Original mod
------------
Simple Zombies [.NET] v1.0.2d by sollaholla.
https://www.gta5-mods.com/scripts/simple-zombies
Last updated January 21, 2017.
