From 01d47f8b989cf28fa114776e6b6d73e4dc09c2d6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 23 Jun 2019 13:39:21 +0100 Subject: Fix assignment to parent property bug Fixes bug with assignment to DOMME and sessionAborted properties from metaClass method. --- scripts/toy.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/toy.groovy') diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 82427ac..5e2be3b 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -51,7 +51,7 @@ return new Object() { if (!f.exists()) return [:]; return Eval.me(f.text); }; - return [ + DOMME = [ "$DATAFOLDER/images/toy/domme.groovy", "$DATAFOLDER/images/toy/$domme/person.groovy", "$DATAFOLDER/images/toy/$domme/$set/set.groovy" ] @@ -1196,7 +1196,7 @@ return new Object() { // GO! setDefault("toy.owner", "ancilla"); OWNER = loadString("toy.owner"); - DOMME = loadDomme(OWNER); + loadDomme(OWNER); loadModules(this); def getDayNum = { Math.floorDiv(getTime() - localTimeOffset() - 14400, 86400) }; def getAvail = { dayNum -> loadInteger("toy.availability.$dayNum") ?: 0 }; -- cgit v1.2.3