From 4357a55eff9f9f38528e96173152f163a6614165 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Sun, 24 Nov 2024 09:25:22 +0000 Subject: [PATCH] PowerUtils: allow constructing null pointers with xpointer --- PowerUtils/xbox.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PowerUtils/xbox.h b/PowerUtils/xbox.h index 2b21385..251a2d8 100644 --- a/PowerUtils/xbox.h +++ b/PowerUtils/xbox.h @@ -140,9 +140,12 @@ struct xpointer { be ptr; + xpointer() : ptr(0) + { + } + xpointer(T* ptr) : ptr((uint32_t)ptr) { - } T* get() const