mirror of https://github.com/WerWolv/ImHex.git
fix: Tutorial highlights not working anymore correctly
This commit is contained in:
parent
a476617432
commit
fa1ae8d746
|
@ -33,6 +33,13 @@ namespace hex {
|
||||||
idStack.push_back(0);
|
idStack.push_back(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void add(const char *string) {
|
||||||
|
const ImGuiID seed = idStack.back();
|
||||||
|
const ImGuiID id = ImHashStr(string, 0, seed);
|
||||||
|
|
||||||
|
idStack.push_back(id);
|
||||||
|
}
|
||||||
|
|
||||||
void add(const std::string &string) {
|
void add(const std::string &string) {
|
||||||
const ImGuiID seed = idStack.back();
|
const ImGuiID seed = idStack.back();
|
||||||
const ImGuiID id = ImHashStr(string.c_str(), string.length(), seed);
|
const ImGuiID id = ImHashStr(string.c_str(), string.length(), seed);
|
||||||
|
|
Loading…
Reference in New Issue