PyroFire232 / warptorio2

An updated / refined version of warptorio https://mods.factorio.com/mod/warptorio
8 stars 8 forks source link

Crash when warping with dead player #3

Closed drysle closed 4 years ago

drysle commented 4 years ago

I had a crash when the warp triggered while I was waiting to respawn

2635.732 Error MainLoop.cpp:1199: Exception at tick 292200: The mod Warptorio2 caused a non-recoverable error.
Please report this error to the mod author.

Error while running event warptorio2::on_tick (ID 0)
__warptorio2__/control.lua:1546: attempt to index local 'iv' (a nil value)
stack traceback:
    __warptorio2__/control.lua:1546: in function 'Warpout'
    __warptorio2__/control.lua:988: in function 'TickTimers'
    __warptorio2__/control.lua:1041: in function <__warptorio2__/control.lua:1027>

Fixed by making sure the inventory exists before looking through it.

PyroFire232 commented 4 years ago

k