Fixed windows nopch build
This commit is contained in:
1 parent
26a7916faf
commit
e55555ed8c
2 files changed
+10
-8
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user