[2.0.43] Crash on start with animation and decay_animation nil on corpse prototypes (CorpsePrototype.cpp)
Posted: Mon Mar 31, 2025 8:37 pm
1. Create a simple mod
2. Put the following code in data-updates.lua
3. Launch the game. It crashes
This does not necessarily require animation and decay_animation, some other combinations also cause a crash
2. Put the following code in data-updates.lua
3. Launch the game. It crashes
Code: Select all
for _, prototype in pairs(data.raw["corpse"] or {}) do
prototype.animation = nil
prototype.decay_animation = nil
end