summaryrefslogtreecommitdiff
path: root/src/serialize/characterdata.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialize/characterdata.hpp')
-rw-r--r--src/serialize/characterdata.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serialize/characterdata.hpp b/src/serialize/characterdata.hpp
index 7943f3ac..a93768b8 100644
--- a/src/serialize/characterdata.hpp
+++ b/src/serialize/characterdata.hpp
@@ -28,7 +28,7 @@
#include "point.h"
template< class T >
-void serializeCharacterData(T const &data, MessageOut &msg)
+void serializeCharacterData(const T &data, MessageOut &msg)
{
msg.writeByte(data.getAccountLevel());
msg.writeByte(data.getGender());
@@ -50,11 +50,11 @@ void serializeCharacterData(T const &data, MessageOut &msg)
msg.writeShort(data.getMapId());
- Point const &pos = data.getPosition();
+ const Point &pos = data.getPosition();
msg.writeShort(pos.x);
msg.writeShort(pos.y);
- Possessions const &poss = data.getPossessions();
+ const Possessions &poss = data.getPossessions();
msg.writeLong(poss.money);
for (int j = 0; j < EQUIPMENT_SLOTS; ++j)
{