diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 463e28252..81276f3f2 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -761,7 +761,7 @@ namespace hex::plugin::builtin { // Draw cell content ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); ImGui::PushItemWidth((CharacterSize * this->m_currDataVisualizer->getMaxCharsPerCell()).x); - this->drawCell(byteAddress, &bytes[x], bytesPerCell, cellHovered); + this->drawCell(byteAddress, &bytes[x * bytesPerCell], bytesPerCell, cellHovered); ImGui::PopItemWidth(); ImGui::PopStyleVar();