fixed nopch build

This commit is contained in:
Ovahlord
2021-07-12 09:01:53 +02:00
parent 1a5c06b61a
commit 81098f738f
2 changed files with 7 additions and 1 deletions

View File

@@ -18,6 +18,7 @@
#include "TradeData.h"
#include "Item.h"
#include "Player.h"
#include "Random.h"
#include "TradePackets.h"
#include "WorldSession.h"
@@ -123,6 +124,11 @@ void TradeData::SetMoney(uint64 money)
Update(true);
}
void TradeData::UpdateServerStateIndex()
{
m_serverStateIndex = rand32();
}
void TradeData::Update(bool forTrader /*= true*/) const
{
if (forTrader)

View File

@@ -65,7 +65,7 @@ public:
void UpdateClientStateIndex() { ++m_clientStateIndex; }
uint32 GetServerStateIndex() const { return m_serverStateIndex; }
void UpdateServerStateIndex() { m_serverStateIndex = rand32(); }
void UpdateServerStateIndex();
private:
void Update(bool for_trader = true) const;