pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r3699 - trunk/pingus/src


From: grumbel at BerliOS
Subject: [Pingus-CVS] r3699 - trunk/pingus/src
Date: Mon, 7 Jul 2008 07:19:24 +0200

Author: grumbel
Date: 2008-07-07 07:19:21 +0200 (Mon, 07 Jul 2008)
New Revision: 3699

Modified:
   trunk/pingus/src/pingu_action_factory.cpp
Log:
Inserted an assert()

Modified: trunk/pingus/src/pingu_action_factory.cpp
===================================================================
--- trunk/pingus/src/pingu_action_factory.cpp   2008-07-05 23:11:03 UTC (rev 
3698)
+++ trunk/pingus/src/pingu_action_factory.cpp   2008-07-07 05:19:21 UTC (rev 
3699)
@@ -15,6 +15,7 @@
 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #include <iostream>
+#include <assert.h>
 #include "pingus_error.hpp"
 
 #include "actions/rocket_launcher.hpp"
@@ -164,7 +165,8 @@
       return action;
     }
 
-  return 0; // never reached
+  assert(!"PinguActionFactory::create: Unknown ActionName supplied");
+  return 0;
 }
 
 void





reply via email to

[Prev in Thread] Current Thread [Next in Thread]