From ac2e80dc07a122923e52e4a0a05369e326847bb7 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Mon, 5 May 2014 14:47:10 +0200 Subject: [PATCH] Nasal: allow ghost as 'me' for 'call' --- simgear/nasal/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/nasal/lib.c b/simgear/nasal/lib.c index d572f892..796c3ca3 100644 --- a/simgear/nasal/lib.c +++ b/simgear/nasal/lib.c @@ -252,7 +252,7 @@ static naRef f_call(naContext c, naRef me, int argc, naRef* args) callargs = argc > 1 ? args[1] : naNil(); callme = argc > 2 ? args[2] : naNil(); // Might be nil, that's OK callns = argc > 3 ? args[3] : naNil(); // ditto - if(!IS_HASH(callme)) callme = naNil(); + if(!IS_HASH(callme) && !IS_GHOST(callme)) callme = naNil(); if(!IS_HASH(callns)) callns = naNil(); if(argc==0 || !IS_FUNC(args[0]) || (!IS_NIL(callargs) && !IS_VEC(callargs))) ARGERR(); -- 2.39.5