projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hopefully fixed the crash on exit, keep sectors script bundled in the sector and...
[supertux.git]
/
src
/
scripting
/
floating_image.cpp
diff --git
a/src/scripting/floating_image.cpp
b/src/scripting/floating_image.cpp
index
bfb7db9
..
1139358
100644
(file)
--- a/
src/scripting/floating_image.cpp
+++ b/
src/scripting/floating_image.cpp
@@
-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);
}