summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-16 21:52:46 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-16 21:52:46 +0300
commitc77971cb8dc2fcb4613f58d863e184d23a762519 (patch)
tree73596d45ef9c450b96cd4699488f3f07a90dbdd8 /src/flooritem.cpp
parent0d4fa49a591658989edb5b640d996b9dc93775d2 (diff)
downloadManaVerse-c77971cb8dc2fcb4613f58d863e184d23a762519.tar.gz
ManaVerse-c77971cb8dc2fcb4613f58d863e184d23a762519.tar.bz2
ManaVerse-c77971cb8dc2fcb4613f58d863e184d23a762519.tar.xz
ManaVerse-c77971cb8dc2fcb4613f58d863e184d23a762519.zip
Fix other compilation warnings.
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 ++)