diff options
-rw-r--r-- | src/resources/iteminfo.cpp | 4 | ||||
-rw-r--r-- | src/resources/iteminfo.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index 60810e000..68fbfa08c 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -368,12 +368,12 @@ void ItemInfo::setSpriteOrder(int *const ptr, void ItemInfo::setDrawBefore(const int direction, const int n) { - setSpriteOrder(&mDrawBefore[0], direction, n); + setSpriteOrder(&mDrawBefore[0], direction, n, -1); } void ItemInfo::setDrawAfter(const int direction, const int n) { - setSpriteOrder(&mDrawAfter[0], direction, n); + setSpriteOrder(&mDrawAfter[0], direction, n, -1); } void ItemInfo::setDrawPriority(const int direction, const int n) diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index e1fe30b33..d48fac5a0 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -337,7 +337,7 @@ class ItemInfo final static void setSpriteOrder(int *const ptr, const int direction, const int n, - const int def = -1) A_NONNULL(1); + const int def) A_NONNULL(1); SpriteDisplay mDisplay; /**< Display info (like icon) */ MissileInfo mMissile; |