mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-07 15:05:47 +01:00
Update main.cpp
This commit is contained in:
parent
3460d9d8a8
commit
bbb7411b83
4
main.cpp
4
main.cpp
@ -137,12 +137,12 @@ public:
|
||||
template <typename T>
|
||||
static T SafeRead(uintptr_t address) {
|
||||
if (!IsValidAddress(address)) return T{};
|
||||
return *reinterpret_cast<volatile T*>(address);
|
||||
return *reinterpret_cast<T*>(address);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
static T FastRead(uintptr_t address) {
|
||||
return *reinterpret_cast<volatile T*>(address);
|
||||
return *reinterpret_cast<T*>(address);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user