Woops part 2

pull/58/head
Koncord 8 years ago
parent d612cbcc7b
commit 3405e36ce4

@ -9,6 +9,7 @@
#include <components/esm/loadcell.hpp>
#include <components/esm/loadnpc.hpp>
#include <components/esm/creaturestats.hpp>
#include <components/esm/loadclas.hpp>
#include <RakNetTypes.h>
namespace mwmp
@ -142,6 +143,7 @@ namespace mwmp
}
RakNet::RakNetGUID guid;
GUIMessageBox guiMessageBox;
ESM::Class klass;
protected:
ESM::Position pos;

@ -15,9 +15,7 @@ void mwmp::PacketClass::Packet(RakNet::BitStream *bs, mwmp::BasePlayer *player,
BasePacket::Packet(bs, player, send);
RW(player->klass.mId, send);
RW(player->customClass, send);
if(player->customClass)
if(player->klass.mId.empty()) // custom class
{
RW(player->klass.mName, send);
RW(player->klass.mDescription, send);

Loading…
Cancel
Save