Now the growings animation looks pretty cool :)
[supertux.git] / src / sprite_manager.cpp
index 08a1506..e2343a8 100644 (file)
@@ -38,6 +38,12 @@ void
 SpriteManager::load_resfile(const std::string& filename)
 {
   lisp_object_t* root_obj = lisp_read_from_file(filename);
+  if (!root_obj)
+    {
+      std::cout << "SpriteManager: Couldn't load: " << filename << std::endl;
+      return;
+    }
+
   lisp_object_t* cur = root_obj;
 
   if (strcmp(lisp_symbol(lisp_car(cur)), "supertux-resources") != 0)