From c77971cb8dc2fcb4613f58d863e184d23a762519 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Aug 2015 21:52:46 +0300 Subject: Fix other compilation warnings. --- src/flooritem.cpp | 5 ++--- src/flooritem.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/flooritem.cpp b/src/flooritem.cpp index b9d2f3cf3..4680a29b7 100644 --- a/src/flooritem.cpp +++ b/src/flooritem.cpp @@ -110,11 +110,10 @@ void FloorItem::postInit(Map *const map, int subX, int subY) } void FloorItem::setCards(const int *const cards, - const int size) + int sz) { - if (size < 0 || !cards) + if (sz < 0 || !cards) return; - int sz = size; if (sz > maxCards) sz = maxCards; for (int f = 0; f < sz; f ++) diff --git a/src/flooritem.h b/src/flooritem.h index ca4a5022e..d2cfa2c26 100644 --- a/src/flooritem.h +++ b/src/flooritem.h @@ -111,7 +111,7 @@ class FloorItem final : public ActorSprite { return mCursor; } void setCards(const int *const cards, - const int size); + int sz); private: int mCards[4]; -- cgit v1.2.3-70-g09d2