fixed nopch build
This commit is contained in:
1 parent
1a5c06b61a
commit
81098f738f
2 files changed
+7
-1
No files matched your search
@@ -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