diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-16 19:28:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-16 19:28:16 +0300 |
commit | cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96 (patch) | |
tree | fdda7e2c3d93b35771f6eb79c22dce9301082f19 /src/being.cpp | |
parent | f8fc3380197c078a6dcff02351d835c3022411e1 (diff) | |
download | ManaVerse-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.gz ManaVerse-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.bz2 ManaVerse-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.xz ManaVerse-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.zip |
Add const to variables with type size_t.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 4 |
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 ++) { |