forked from Mirrors/openclonk
Fix nil pointer in interaction menu when object transfer removes target container.
parent
af5d9903bd
commit
f6583ee754
|
@ -531,7 +531,7 @@ public func OnMoveAllToClicked(int menu_id)
|
|||
for (obj in contents)
|
||||
{
|
||||
// Sanity, can actually happen if an item merges with others during the transfer etc.
|
||||
if (!obj) continue;
|
||||
if (!obj || !target) continue;
|
||||
|
||||
var collected = target->Collect(obj, true);
|
||||
if (collected)
|
||||
|
|
Loading…
Reference in New Issue