mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-10-30 07:11:38 +00:00
PowerUtils: allow constructing null pointers with xpointer
This commit is contained in:
parent
62e3188a81
commit
4357a55eff
1 changed files with 4 additions and 1 deletions
|
|
@ -140,9 +140,12 @@ struct xpointer
|
||||||
{
|
{
|
||||||
be<uint32_t> ptr;
|
be<uint32_t> ptr;
|
||||||
|
|
||||||
|
xpointer() : ptr(0)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
xpointer(T* ptr) : ptr((uint32_t)ptr)
|
xpointer(T* ptr) : ptr((uint32_t)ptr)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
T* get() const
|
T* get() const
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue