summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-19 19:42:28 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-19 19:42:28 +0300
commit91c2cdaa01317a32ca38700198dbaf80c80c8600 (patch)
tree69889ecfc91055575fcdb3f296aced5d8532c1f9 /src
parentd0a53b203f918c24837527e15cdc84c807de49ea (diff)
downloadmanaverse-91c2cdaa01317a32ca38700198dbaf80c80c8600.tar.gz
manaverse-91c2cdaa01317a32ca38700198dbaf80c80c8600.tar.bz2
manaverse-91c2cdaa01317a32ca38700198dbaf80c80c8600.tar.xz
manaverse-91c2cdaa01317a32ca38700198dbaf80c80c8600.zip
Improve incriment counter in mrand.
Diffstat (limited to 'src')
-rw-r--r--src/utils/mrand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/mrand.cpp b/src/utils/mrand.cpp
index 85b3e6b9c..6080332ae 100644
--- a/src/utils/mrand.cpp
+++ b/src/utils/mrand.cpp
@@ -41,5 +41,5 @@ int mrand()
{
if (mPos >= randNumbers)
mPos = 0;
- return mRand[++mPos];
+ return mRand[mPos++];
}