From 478ffec82dae4f55c38ccd424079166ec8c38905 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 00:27:14 +0300 Subject: Convert TargetCursorSize enum into strong typed enum. --- src/being/actorsprite.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/being/actorsprite.h') diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h index 97553171a..9ba16a64c 100644 --- a/src/being/actorsprite.h +++ b/src/being/actorsprite.h @@ -90,8 +90,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor /** * Returns the required size of a target cursor for this being. */ - virtual TargetCursorSize::Size getTargetCursorSize() const - A_WARN_UNUSED + virtual TargetCursorSizeT getTargetCursorSize() const A_WARN_UNUSED { return TargetCursorSize::MEDIUM; } virtual int getTargetOffsetX() const A_WARN_UNUSED @@ -216,7 +215,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor /** Animated target cursors. */ static AnimatedSprite *targetCursor[TargetCursorType::NUM_TCT] - [TargetCursorSize::NUM_TC]; + [static_cast(TargetCursorSize::NUM_TC)]; static bool loaded; -- cgit v1.2.3-70-g09d2