fix: Rendering of pattern array entries not working correctly

This commit is contained in:
WerWolv
2022-09-08 23:03:58 +02:00
parent f219395b25
commit 83f4093796
3 changed files with 3 additions and 2 deletions

View File

@@ -368,7 +368,7 @@ namespace hex {
void PatternDrawer::drawArrayNode(u64 idx, u64& displayEnd, pl::ptrn::Pattern& pattern) {
u64 lastVisible = displayEnd - 1;
ImGui::PushID(&pattern);
ImGui::PushID(reinterpret_cast<void*>(pattern.getOffset()));
if (idx < lastVisible) {
this->draw(pattern);