We're not going to fall out of the loop, inform the compiler of that
authorMikko Rasa <tdb@tdb.fi>
Wed, 2 Nov 2011 10:44:59 +0000 (12:44 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 2 Nov 2011 10:44:59 +0000 (12:44 +0200)
src/ActorUtil.cpp

index e2f4375..13ea06b 100755 (executable)
@@ -344,15 +344,17 @@ Actor* ActorUtil::MakeActor( const RageTextureID &ID )
                        rslt = Dialog::AbortRetryIgnore( sErr, "INVALID_ACTOR" );
                        switch(rslt)
                        {
+                               case Dialog::retry:
+                                       break;
                                case Dialog::ignore:
                                        LOG->Warn( sErr );
                                        return NULL;
-                               case Dialog::abort:
+                               default:
                                        RageException::Throw(sErr);
                        }
                }
        }
-       while (rslt == Dialog::retry);
+       while (1);
 }
 
 void ActorUtil::SetXY( Actor& actor, const CString &sType )