diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-01 18:38:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-01 19:28:09 +0300 |
commit | 624ddd306ebbd1cfdfd5bf85832ee969e15a619c (patch) | |
tree | d36e74e62836de01727fc0a440f3a70cabc91acd /src/net/eathena | |
parent | 1d6c226f2aae2410f9785709aefd88f1a17e6bca (diff) | |
download | ManaVerse-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.gz ManaVerse-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.bz2 ManaVerse-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.xz ManaVerse-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.zip |
Move JOB stat from net enum into attributes.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/attrs.h | 4 | ||||
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/net/eathena/attrs.h b/src/net/eathena/attrs.h index a8db3fec5..0c3edfada 100644 --- a/src/net/eathena/attrs.h +++ b/src/net/eathena/attrs.h @@ -25,10 +25,6 @@ namespace EAthena { - enum - { - JOB = 0xa - }; } // namespace EAthena #endif // NET_EATHENA_ATTRS_H diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 6a0bd6509..9dbdb7cad 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -148,7 +148,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, PlayerInfoBackend &data = character->data; data.mAttributes[Attributes::EXP] = msg.readInt32("exp"); data.mAttributes[Attributes::MONEY] = msg.readInt32("money"); - Stat &jobStat = data.mStats[JOB]; + Stat &jobStat = data.mStats[Attributes::JOB]; jobStat.exp = msg.readInt32("job"); const int temp = msg.readInt32("job level"); |