Fixed windows nopch build

This commit is contained in:
Shauren committed 2014-06-11 23:08:32 +02:00
1 parent 26a7916faf
commit e55555ed8c
2 files changed
+10 -8

No files matched your search

+9
View File
@@ -547,3 +547,12 @@ std::string ByteArrayToHexStr(uint8 const* bytes, uint32 arrayLen, bool reverse
return ss.str();
}
uint32 EventMap::GetTimeUntilEvent(uint32 eventId) const
{
for (EventStore::const_iterator itr = _eventMap.begin(); itr != _eventMap.end(); ++itr)
if (eventId == (itr->second & 0x0000FFFF))
return itr->first - _time;
return std::numeric_limits<uint32>::max();
}