Improved stay-on-platform code to handle non-32x32 badguys. Implemented s-o-p for...
[supertux.git] / src / lisp / list_iterator.cpp
index 1850113..cd8e375 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <config.h>
 
-#include "list_iterator.h"
+#include "list_iterator.hpp"
 #include <stdexcept>
 
 namespace lisp
@@ -39,12 +39,12 @@ ListIterator::next()
 
   const lisp::Lisp* child = cur->get_car();
   if(!child)
-    throw new std::runtime_error("child is 0 in list entry");
+    throw std::runtime_error("child is 0 in list entry");
   if(child->get_type() != lisp::Lisp::TYPE_CONS)
-    throw new std::runtime_error("Expected CONS");
+    throw std::runtime_error("Expected CONS");
   const lisp::Lisp* name = child->get_car();
   if(!name || name->get_type() != lisp::Lisp::TYPE_SYMBOL)
-    throw new std::runtime_error("Expected symbol");
+    throw std::runtime_error("Expected symbol");
   name->get(current_item);
   current_lisp = child->get_cdr();