diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-19 19:42:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-19 19:42:28 +0300 |
commit | 91c2cdaa01317a32ca38700198dbaf80c80c8600 (patch) | |
tree | 69889ecfc91055575fcdb3f296aced5d8532c1f9 | |
parent | d0a53b203f918c24837527e15cdc84c807de49ea (diff) | |
download | plus-91c2cdaa01317a32ca38700198dbaf80c80c8600.tar.gz plus-91c2cdaa01317a32ca38700198dbaf80c80c8600.tar.bz2 plus-91c2cdaa01317a32ca38700198dbaf80c80c8600.tar.xz plus-91c2cdaa01317a32ca38700198dbaf80c80c8600.zip |
Improve incriment counter in mrand.
-rw-r--r-- | src/utils/mrand.cpp | 2 |
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++]; } |