summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flooritem.cpp5
-rw-r--r--src/flooritem.h2
2 files changed, 3 insertions, 4 deletions
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];