summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-16 19:28:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-16 19:28:16 +0300
commitcd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96 (patch)
treefdda7e2c3d93b35771f6eb79c22dce9301082f19 /src/being.cpp
parentf8fc3380197c078a6dcff02351d835c3022411e1 (diff)
downloadmv-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.gz
mv-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.bz2
mv-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.xz
mv-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.zip
Add const to variables with type size_t.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 30541a590..5e52901f6 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -2512,7 +2512,7 @@ Equipment *Being::getEquipment()
void Being::undressItemById(const int id)
{
- size_t sz = mSpriteIDs.size();
+ const size_t sz = mSpriteIDs.size();
for (size_t f = 0; f < sz; f ++)
{
@@ -2680,7 +2680,7 @@ BeingEquipBackend::BeingEquipBackend(Being *const being):
memset(mEquipment, 0, sizeof(mEquipment));
if (being)
{
- size_t sz = being->mSpriteIDs.size();
+ const size_t sz = being->mSpriteIDs.size();
for (unsigned f = 0; f < sz; f ++)
{