X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject_factory.h;h=7ff6028f2f70912b3d2c9d7119a494105e08dd4d;hb=1d613f782e21f55f915b6e5fa808e7435896461a;hp=7e578356f521cd0baa3112c5d39215b88980d4f2;hpb=7bbb0ef907ebec48718560425a0147b31307f7fd;p=supertux.git diff --git a/src/object_factory.h b/src/object_factory.h index 7e578356f..7ff6028f2 100644 --- a/src/object_factory.h +++ b/src/object_factory.h @@ -31,6 +31,9 @@ using namespace SuperTux; class Factory { public: + virtual ~Factory() + { } + /** Creates a new gameobject from a lisp node. * Remember to delete the objects later */ @@ -46,7 +49,7 @@ GameObject* create_object(const std::string& name, const Vector& pos); /** comment from Matze: * Yes I know macros are evil, but in this specific case they save * A LOT of typing and evil code duplication. - * I'll happily acceppt alternatives if someone can present me one that does + * I'll happily accept alternatives if someone can present me one that does * not involve typing 4 or more lines for each object class */ #define IMPLEMENT_FACTORY(CLASS, NAME) \