--- deliantra/server/common/anim.C 2007/04/12 14:18:04 1.22 +++ deliantra/server/common/anim.C 2007/04/13 07:26:29 1.23 @@ -41,6 +41,9 @@ animation & animation::create (const char *name, uint8 frames, uint8 facings) { + if (animations.size () == MAXANIMNUM) + cleanup ("trying to create new animation, but MAXANIMNUM animations in use."); + animations.push_back (animation ()); animation &anim = animations.back ();