From 0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 May 2015 14:30:20 +0300 Subject: Add strong typed int type BeingId. --- src/net/ea/beinghandler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/ea/beinghandler.h') diff --git a/src/net/ea/beinghandler.h b/src/net/ea/beinghandler.h index ca575e506..632381fb3 100644 --- a/src/net/ea/beinghandler.h +++ b/src/net/ea/beinghandler.h @@ -36,7 +36,7 @@ class BeingHandler notfinal : public Net::BeingHandler protected: explicit BeingHandler(const bool enableSync); - static Being *createBeing(const int id, + static Being *createBeing(const BeingId id, const int16_t job) A_WARN_UNUSED; static void setSprite(Being *const being, const unsigned int slot, @@ -71,7 +71,7 @@ class BeingHandler notfinal : public Net::BeingHandler static void processBeingMove3(Net::MessageIn &msg); // Should we honor server "Stop Walking" packets - static int mSpawnId; + static BeingId mSpawnId; static bool mSync; }; -- cgit v1.2.3-60-g2f50