From 074132d6d67ef741e0cdef93b73943306133ae63 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 18 Dec 2018 19:48:31 +0000 Subject: Unset outfit properties when dress() fails --- scripts/toy.groovy | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 5ae388a..a33959c 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -118,6 +118,9 @@ def dress = { specs -> outfit = selectImageSet(OWNER, specs); if (!outfit) { showPopup("No outfit for $OWNER : $specs"); + save("toy.owner.outfit", null); + save("toy.owner.outfitTime", null); + return; } save("toy.owner.outfit", outfit.set); save("toy.owner.outfitTime", getTime()); -- cgit v1.2.3