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/buysellhandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/net/ea/buysellhandler.cpp') diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp index e0f686cad..0e939c217 100644 --- a/src/net/ea/buysellhandler.cpp +++ b/src/net/ea/buysellhandler.cpp @@ -42,12 +42,12 @@ namespace Ea { -int BuySellHandler::mNpcId = 0; +BeingId BuySellHandler::mNpcId = BeingId_zero; BuyDialog *BuySellHandler::mBuyDialog = nullptr; BuySellHandler::BuySellHandler() { - mNpcId = 0; + mNpcId = BeingId_zero; mBuyDialog = nullptr; } @@ -55,7 +55,7 @@ void BuySellHandler::processNpcBuySellChoice(Net::MessageIn &msg) { if (!BuySellDialog::isActive()) { - mNpcId = msg.readInt32("npc id"); + mNpcId = msg.readBeingId("npc id"); BuySellDialog *const dialog = new BuySellDialog(mNpcId); dialog->postInit(); } -- cgit v1.2.3-60-g2f50