#include <iostream>
#include <cmath>
+#include <cassert>
#include <stdexcept>
#include "../app/globals.h"
Sprite::draw(DrawingContext& context, const Vector& pos, int layer,
Uint32 drawing_effect)
{
+ assert(action != 0);
update();
if((int)frame >= get_frames() || (int)frame < 0)
Sprite::draw_part(DrawingContext& context, const Vector& source,
const Vector& size, const Vector& pos, int layer, Uint32 drawing_effect)
{
+ assert(action != 0);
update();
if((int)frame >= get_frames() || (int)frame < 0)