ImHex
ImHex copied to clipboard
[Bug] Multiple break statements in one struct, only last one will trigger
Operating System
Windows
What's the issue you encountered?
If I have multiple break statements in one struct, only the last one will trigger. In this example, the first one does not do anything

How can the issue be reproduced?

#include <std/core.pat>
struct foo {
u8 a;
if(std::core::array_index() == 0) break;
if(std::core::array_index() == 5) break;
if(std::core::array_index() == 20) break;
};
foo bar[300] @ 0;
ImHex Version
1.27.1
ImHex Build Type
- [X] Nightly or built from sources
Installation type
MSI
Additional context?
No response