Core/Misc: Warning fixes (/W4)

(cherry picked from commit c9ba5ce591a8b4ef5dc0e73d0ce107b6acf5e969)
This commit is contained in:
Shauren authored and Aokromes committed 2016-08-10 06:41:59 +02:00
1 parent 436cdfd7c9
commit f1c84639b5
1 file changed
+4 -4
+4 -4
View File
@@ -126,9 +126,9 @@ class TC_GAME_API MapManager
template<typename Worker>
void DoForAllMapsWithMapId(uint32 mapId, Worker&& worker);
uint32 IncreaseScheduledScriptsCount() { return ++_scheduledScripts; }
uint32 DecreaseScheduledScriptCount() { return --_scheduledScripts; }
uint32 DecreaseScheduledScriptCount(size_t count) { return _scheduledScripts -= count; }
void IncreaseScheduledScriptsCount() { ++_scheduledScripts; }
void DecreaseScheduledScriptCount() { --_scheduledScripts; }
void DecreaseScheduledScriptCount(std::size_t count) { _scheduledScripts -= count; }
bool IsScriptScheduled() const { return _scheduledScripts > 0; }
private:
@@ -157,7 +157,7 @@ class TC_GAME_API MapManager
MapUpdater m_updater;
// atomic op counter for active scripts amount
std::atomic<uint32> _scheduledScripts;
std::atomic<std::size_t> _scheduledScripts;
};
template<typename Worker>