mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-07 01:18:55 +01:00
fixed nopch build
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user