hopefully fixed the crash on exit, keep sectors script bundled in the sector and...
[supertux.git] / src / scripting / floating_image.cpp
index bfb7db9..1139358 100644 (file)
@@ -9,6 +9,7 @@ namespace Scripting
 
 FloatingImage::FloatingImage(const std::string& spritefile)
 {
+  assert(Sector::current() != NULL);
   floating_image = new _FloatingImage(spritefile); 
   Sector::current()->add_object(floating_image);
 }