Fixed issue if the house deed doesn't exist.

This commit is contained in:
Cekis
2016-05-25 01:00:05 +01:00
parent cf7049e672
commit 25292e500c
@@ -277,7 +277,7 @@ public class player_structure extends script.base_script
}
public static obj_id createTemporaryStructure(obj_id deed, obj_id owner, location loc, int rot, float placementHeight) throws InterruptedException
{
if (!isIdValid(deed))
if (!isIdValid(deed) || !exists(deed) || deed == null || deed == obj_id.NULL_ID)
{
return null;
}