Applied sound pre-loading patch from mathnerd314 (#331)
[supertux.git] / src / badguy / ghosttree.cpp
index 82c74cd..e343621 100644 (file)
@@ -40,6 +40,8 @@ GhostTree::GhostTree(const lisp::Lisp& lisp)
 {
   glow_sprite.reset(sprite_manager->create("images/creatures/ghosttree/ghosttree-glow.sprite"));
   set_colgroup_active(COLGROUP_TOUCHABLE);
+  sound_manager->preload("sounds/tree_howling.ogg");
+  sound_manager->preload("sounds/tree_suck.ogg");
 }
 
 GhostTree::~GhostTree()