mirror of https://github.com/stella-emu/stella.git
Delay queue fixes --- should be academic.
This commit is contained in:
parent
d02c985a91
commit
cac9bf76c7
|
@ -57,6 +57,8 @@ void DelayQueue::reset()
|
|||
{
|
||||
for (DelayQueueMember& member : myMembers)
|
||||
member.clear();
|
||||
|
||||
memset(myIndices, 0xFF, 0xFF);
|
||||
}
|
||||
|
||||
} // namespace TIA6502tsCore
|
||||
|
|
|
@ -52,7 +52,7 @@ class DelayQueueMember
|
|||
}
|
||||
|
||||
vector<Entry>::const_iterator end() const {
|
||||
return (mySize < myEntries.size() - 1) ? (myEntries.begin() + mySize) : myEntries.end();
|
||||
return (mySize < myEntries.size()) ? (myEntries.begin() + mySize) : myEntries.end();
|
||||
}
|
||||
|
||||
void clear() {
|
||||
|
|
Loading…
Reference in New Issue