mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-06 18:08:31 +00:00
Compare commits
3 Commits
6202018b7a
...
27f02aacff
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27f02aacff | ||
|
|
3f3136d483 | ||
|
|
7f3b56c28b |
@ -256,9 +256,20 @@ namespace SourceHook
|
||||
|
||||
ICleanupTask *m_CleanupTask;
|
||||
|
||||
bool isValidIterator(List<CHook>::iterator &myIter, List<CHook> &myList) {
|
||||
for (auto iter = myList.begin(); iter != myList.end(); ++iter) {
|
||||
if (iter == myIter) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void SkipPaused(List<CHook>::iterator &iter, List<CHook> &list)
|
||||
{
|
||||
while (iter != list.end() && iter->IsPaused())
|
||||
if (!iter || !isValidIterator(iter, list))
|
||||
iter = list.end();
|
||||
while (iter != list.end() && iter && iter->IsPaused())
|
||||
++iter;
|
||||
}
|
||||
public:
|
||||
|
||||
@ -40,4 +40,4 @@ msvc2015, take two
|
||||
"something witty" - Fishy!
|
||||
thisisawfuldotnetcom
|
||||
iluvwomen99
|
||||
Hi all, I'm new in here!!!!!!!
|
||||
Hi all, I'm new in here!!!!!!!!
|
||||
|
||||
Loading…
Reference in New Issue
Block a user