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