From f404d991aa53ed81855e51b597bfe1d5c2288b42 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Dec 2011 17:03:20 -0700 Subject: Most operators work, as well as if/then/else. Loops should be very easy, but we don't have lists working yet, next is scope selection. --- src/situation.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/situation.cpp') diff --git a/src/situation.cpp b/src/situation.cpp index d7f98aa..8221b50 100644 --- a/src/situation.cpp +++ b/src/situation.cpp @@ -37,11 +37,13 @@ void Situation::exec( class GameState &gState, Situation::Mode m ) switch( m ) { case modeSetup: - gState.parse( pAstSetup ); + if( pAstSetup ) + gState.parse( pAstSetup ); break; case modeEnter: - gState.parse( pAstEnter ); + if( pAstEnter ) + gState.parse( pAstEnter ); break; } } -- cgit v1.2.3