Browse Source

Endlosschleife in bediungung mit wait anweisung behoben

Kolja Strohm 5 years ago
parent
commit
8f64530bdb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      StickmanWorldOnline/Trigger.cpp

+ 2 - 1
StickmanWorldOnline/Trigger.cpp

@@ -193,7 +193,8 @@ bool Bedingung::check( Spiel *zSpiel, Ereignis *zEreignis )
     double wait;
     double wait;
     ProgramCounter c;
     ProgramCounter c;
     LocalMemory m;
     LocalMemory m;
-    while( !expression->runNext( zSpiel, zEreignis, &m, &c, wait ) );
+    while( !expression->runNext( zSpiel, zEreignis, &m, &c, wait ) )
+        wait = 0;
     Variable *var = m.zVariable( "__return__" );
     Variable *var = m.zVariable( "__return__" );
     return isTrue( var );
     return isTrue( var );
 }
 }