mirror of
https://github.com/rrika/cdcEngineDXHR.git
synced 2024-11-23 21:49:54 +00:00
fix out-of-bounds accesses in DrawableList::draw
This commit is contained in:
parent
853e1efda9
commit
4d55c0185f
@ -168,7 +168,7 @@ void DrawableList::draw(RenderFunctionSet *funcSet, uint32_t funcSetIndex) {
|
||||
bool matchPrev = prev &&
|
||||
prev->typeID == drawable->typeID &&
|
||||
prev->getVtable() == drawable->getVtable();
|
||||
funcSet->func[drawable->typeID](funcSetIndex, drawable, prev);
|
||||
funcSet->func[drawable->typeID](funcSetIndex, drawable, matchPrev ? prev : nullptr);
|
||||
item = item->next;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user