From 846e02907e43cdae952c2b78fa11f8343c35068a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 16 Dec 2017 02:31:58 +0300 Subject: Remove default parameters from Being::takeDamage. --- src/being/being.h | 4 ++-- src/net/ea/beingrecv.cpp | 2 +- src/net/eathena/beingrecv.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/being/being.h b/src/being/being.h index 64a193c46..adbdf7432 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -199,8 +199,8 @@ class Being notfinal : public ActorSprite, void takeDamage(Being *restrict const attacker, const int amount, const AttackTypeT type, - const int attackId = 1, - const int level = 1) restrict2; + const int attackId, + const int level) restrict2; /** * Handles an attack of another being by this being. diff --git a/src/net/ea/beingrecv.cpp b/src/net/ea/beingrecv.cpp index b2859d76f..b802e268f 100644 --- a/src/net/ea/beingrecv.cpp +++ b/src/net/ea/beingrecv.cpp @@ -189,7 +189,7 @@ void BeingRecv::processBeingAction(Net::MessageIn &msg) { // level not present, using 1 dstBeing->takeDamage(srcBeing, param1, - static_cast(type), 1); + static_cast(type), 1, 1); } break; diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index b1daece88..2e3080989 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -1228,7 +1228,7 @@ void BeingRecv::processBeingAction2(Net::MessageIn &msg) { // level not present, using 1 dstBeing->takeDamage(srcBeing, param1, - static_cast(type), 1); + static_cast(type), 1, 1); } break; -- cgit v1.2.3-60-g2f50