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/gamehandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/net/ea/gamehandler.cpp') diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp index 31c487921..583ef3409 100644 --- a/src/net/ea/gamehandler.cpp +++ b/src/net/ea/gamehandler.cpp @@ -42,13 +42,13 @@ namespace Ea { std::string GameHandler::mMap; -int GameHandler::mCharID = 0; +BeingId GameHandler::mCharID = BeingId_zero; GameHandler::GameHandler() : Net::GameHandler() { mMap.clear(); - mCharID = 0; + mCharID = BeingId_zero; } void GameHandler::who() const @@ -92,7 +92,7 @@ void GameHandler::processMapQuitResponse(Net::MessageIn &msg) void GameHandler::clear() { mMap.clear(); - mCharID = 0; + mCharID = BeingId_zero; } void GameHandler::initEngines() const -- cgit v1.2.3-70-g09d2