X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ffloating_image.cpp;h=db8292e9b8ae67c3bbd9af4a7b84c89e89d16d2b;hb=8395f62affe250d02d320aabe939e18ca27982fc;hp=bfb7db95e11b80c4206df6f4ac099879d3dd2851;hpb=fc9a5c880b865b20af63d5fadc6373f7bd1d2e7e;p=supertux.git diff --git a/src/scripting/floating_image.cpp b/src/scripting/floating_image.cpp index bfb7db95e..db8292e9b 100644 --- a/src/scripting/floating_image.cpp +++ b/src/scripting/floating_image.cpp @@ -1,5 +1,25 @@ +// $Id$ +// +// SuperTux +// Copyright (C) 2006 Matthias Braun +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #include +#include #include "floating_image.hpp" #include "sector.hpp" #include "object/floating_image.hpp" @@ -9,6 +29,7 @@ namespace Scripting FloatingImage::FloatingImage(const std::string& spritefile) { + assert(Sector::current() != NULL); floating_image = new _FloatingImage(spritefile); Sector::current()->add_object(floating_image); }