Fix nil pointer in interaction menu when object transfer removes target container.

objectmenu
Sven Eberhardt 2016-01-17 22:09:27 -05:00
parent af5d9903bd
commit f6583ee754
1 changed files with 1 additions and 1 deletions

View File

@ -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)