[2.0.57] Consistent crash with new get_logistic_group() and accessing a detached owner
Posted: Sun Jun 22, 2025 10:30 pm
I am on Linux standalone, 2.0.57
Game crashes when accessing LuaLogisticSection::owner after it's detached from the player, despite "valid" returning true
Steps to reproduce:
Game crashes when accessing LuaLogisticSection::owner after it's detached from the player, despite "valid" returning true
Steps to reproduce:
- Create a Logistic Section on your player character and name it "Test"
- Now enter Editor Mode, and open the console
- Run /sc local lg = game.forces.player.get_logistic_group("Test") if lg and lg.members[1] then local lgs = lg.members[1] if lgs and lgs.valid then game.print(lgs.owner) end end