summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/playerhandler.cpp2
-rw-r--r--src/net/eathena/playerhandler.h2
-rw-r--r--src/net/playerhandler.h2
-rw-r--r--src/net/tmwa/playerhandler.cpp2
-rw-r--r--src/net/tmwa/playerhandler.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 13a6ec018..1054cd877 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -156,7 +156,7 @@ void PlayerHandler::increaseSkill(unsigned short skillId)
outMsg.writeInt16(skillId);
}
-void PlayerHandler::pickUp(FloorItem *floorItem)
+void PlayerHandler::pickUp(const FloorItem *floorItem)
{
if (!floorItem)
return;
diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h
index a6d5be102..c0a04a52e 100644
--- a/src/net/eathena/playerhandler.h
+++ b/src/net/eathena/playerhandler.h
@@ -47,7 +47,7 @@ class PlayerHandler : public MessageHandler, public Ea::PlayerHandler
void increaseAttribute(int attr);
void increaseSkill(unsigned short skillId);
- void pickUp(FloorItem *floorItem);
+ void pickUp(const FloorItem *floorItem);
void setDirection(char direction);
void setDestination(int x, int y, int direction = -1);
void changeAction(Being::Action action);
diff --git a/src/net/playerhandler.h b/src/net/playerhandler.h
index c6a67afb2..8c77c356c 100644
--- a/src/net/playerhandler.h
+++ b/src/net/playerhandler.h
@@ -48,7 +48,7 @@ class PlayerHandler
virtual void increaseSkill(unsigned short skillId) = 0;
- virtual void pickUp(FloorItem *floorItem) = 0;
+ virtual void pickUp(const FloorItem *floorItem) = 0;
virtual void setDirection(char direction) = 0;
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index 92bfaef74..ce0ce4019 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -150,7 +150,7 @@ void PlayerHandler::increaseSkill(unsigned short skillId)
outMsg.writeInt16(skillId);
}
-void PlayerHandler::pickUp(FloorItem *floorItem)
+void PlayerHandler::pickUp(const FloorItem *floorItem)
{
if (!floorItem)
return;
diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h
index 702436d28..e7e99375f 100644
--- a/src/net/tmwa/playerhandler.h
+++ b/src/net/tmwa/playerhandler.h
@@ -47,7 +47,7 @@ class PlayerHandler : public MessageHandler, public Ea::PlayerHandler
void increaseAttribute(int attr);
void increaseSkill(unsigned short skillId);
- void pickUp(FloorItem *floorItem);
+ void pickUp(const FloorItem *floorItem);
void setDirection(char direction);
void setDestination(int x, int y, int direction = -1);
void changeAction(Being::Action action);