CChannelList::updateEvents fix history list event update

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6e08417d40
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-11-13 (Thu, 13 Nov 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2014-11-13 10:51:27 +01:00
parent c0a0d6987c
commit cfeb94de70

View File

@@ -157,13 +157,12 @@ void CChannelList::updateEvents(unsigned int from, unsigned int to)
if ((*chanlist).empty()) if ((*chanlist).empty())
return; return;
if (from > (*chanlist).size() || from >= to)
return;
if (to == 0 || to > (*chanlist).size()) if (to == 0 || to > (*chanlist).size())
to = (*chanlist).size(); to = (*chanlist).size();
if (from > (*chanlist).size() || from >= to)
return;
size_t chanlist_size = to - from; size_t chanlist_size = to - from;
CChannelEventList events; CChannelEventList events;