From c0a5fffb45f849e224750f27fa8c3be5ac447ad6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 14 Sep 2011 01:46:13 +0300 Subject: Add more checks. Fix error in event.cpp from last commits. Improve party members sorting. --- src/resources/animation.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/resources') diff --git a/src/resources/animation.h b/src/resources/animation.h index 0c6f45681..19b17eb54 100644 --- a/src/resources/animation.h +++ b/src/resources/animation.h @@ -84,6 +84,12 @@ class Animation unsigned int getLength() const { return static_cast(mFrames.size()); } + /** + * Check for empty animation. + */ + bool empty() const + { return mFrames.empty(); } + /** * Returns the duration of this animation. */ -- cgit v1.2.3-70-g09d2