summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-28 23:52:14 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-28 23:52:14 +0300
commit3790bff33c3a05c5895dab6c21761253f640a395 (patch)
treeb41c94ded84044056235ad7aeee2c4e9f92d3d43 /src/being/being.h
parent13f0d3f3c5725dd5838bf425760d82484fcfad25 (diff)
downloadmv-3790bff33c3a05c5895dab6c21761253f640a395.tar.gz
mv-3790bff33c3a05c5895dab6c21761253f640a395.tar.bz2
mv-3790bff33c3a05c5895dab6c21761253f640a395.tar.xz
mv-3790bff33c3a05c5895dab6c21761253f640a395.zip
Use templated parameters in Being::getOffset.
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/being.h b/src/being/being.h
index e1f97a08b..b35c550bd 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -1175,8 +1175,8 @@ class Being notfinal : public ActorSprite,
* If walking in direction 'neg' the value is negated.
* TODO: Used by eAthena only?
*/
- int getOffset(const signed char pos,
- const signed char neg) const restrict2 A_WARN_UNUSED;
+ template<signed char pos, signed char neg>
+ int getOffset() const restrict2 A_WARN_UNUSED;
int searchSlotValue(const std::vector<int> &restrict slotRemap,
const int val) const restrict2 A_WARN_UNUSED;