From ef4b3746b656171872d8becdc9e2b634b49af4bc Mon Sep 17 00:00:00 2001 From: knarf Date: Wed, 29 Sep 2010 01:25:52 +0000 Subject: fix last commit (ooops). ValidateModifiers() is apparently called for all modifiers, and some of them apparently allow non-full variable names. My mistake, not corrected. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4639 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/main/ScheduleInterface.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main') diff --git a/src/main/ScheduleInterface.c b/src/main/ScheduleInterface.c index 4bd3b892..b471eea7 100644 --- a/src/main/ScheduleInterface.c +++ b/src/main/ScheduleInterface.c @@ -1560,6 +1560,11 @@ int ValidateModifiers(t_sched_modifier *modifier) for (;modifier;modifier=modifier->next) { + if (modifier->type != sched_while || + modifier->type != sched_if) + { + continue; + } vindex = CCTK_VarIndex(modifier->argument); if (vindex < 0) { -- cgit v1.2.3