forked from Mirrors/openclonk
Fix nil pointer access when recovering from over-full inventory
parent
cd63c06aaf
commit
71b96bc5de
|
@ -407,6 +407,7 @@ func Ejection(object obj)
|
|||
for(var c = 0; c < ContentsCount(); ++c)
|
||||
{
|
||||
var o = Contents(c);
|
||||
if (!o) continue; // safety in case callbacks delete some objects
|
||||
if(o->~IsCarryHeavy())
|
||||
continue;
|
||||
if (GetItemPos(o) == nil)
|
||||
|
|
Loading…
Reference in New Issue