summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-10 02:39:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-10 02:39:25 +0300
commit556e081363da7255fd8c0fea65aeab887b6aa5f8 (patch)
treeaa3a3ebd831dbc18d9a3f4b48e026b6dd3f917d5 /src
parent7b123a882e1cab0b6d74b09daff586895e946fc6 (diff)
downloadmanaverse-556e081363da7255fd8c0fea65aeab887b6aa5f8.tar.gz
manaverse-556e081363da7255fd8c0fea65aeab887b6aa5f8.tar.bz2
manaverse-556e081363da7255fd8c0fea65aeab887b6aa5f8.tar.xz
manaverse-556e081363da7255fd8c0fea65aeab887b6aa5f8.zip
Fix some MStack functions.
Diffstat (limited to 'src')
-rw-r--r--src/resources/mstack.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/resources/mstack.h b/src/resources/mstack.h
index 7f7fa9178..f8a49af49 100644
--- a/src/resources/mstack.h
+++ b/src/resources/mstack.h
@@ -56,14 +56,12 @@ struct MStack final
T &getPop()
{
- mPointer --;
- return *mPointer;
+ return *(mPointer--);
}
const T &getPopConst()
{
- mPointer --;
- return *mPointer;
+ return *(mPointer--);
}
void pop()