From d5cc6222272fd915718669709c0d0fd78e86b246 Mon Sep 17 00:00:00 2001 From: Benoist <14257866+Kenzzer@users.noreply.github.com> Date: Thu, 2 Apr 2026 21:33:38 +0200 Subject: [PATCH] Bump sp module + address fix (#2430) --- core/logic/PluginSys.cpp | 4 ++-- plugins/include/sourcemod.inc | 4 ++-- sourcepawn | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/logic/PluginSys.cpp b/core/logic/PluginSys.cpp index 74d4161d..ba1ee63e 100644 --- a/core/logic/PluginSys.cpp +++ b/core/logic/PluginSys.cpp @@ -330,10 +330,10 @@ bool CPlugin::ReadInfo() else m_MaxClientsVar = nullptr; - if (base->FindPubvarByName("PointerSize", &idx) == SP_ERROR_NONE) { + if (base->FindPubvarByName("Address_PointerSize", &idx) == SP_ERROR_NONE) { sp_pubvar_t* var = nullptr; if (base->GetPubvarByIndex(idx, &var) == SP_ERROR_NONE && var) { - *var->offs = sizeof(void*); + *reinterpret_cast(var->offs) = sizeof(void*); } } diff --git a/plugins/include/sourcemod.inc b/plugins/include/sourcemod.inc index 18b7fd5c..8e748c85 100644 --- a/plugins/include/sourcemod.inc +++ b/plugins/include/sourcemod.inc @@ -82,9 +82,9 @@ typedef Address = int64; public const int64 __Int64_Address__ = 0; /**< Equivallent to nullptr */ -public const int64 Address_Null = 0; +public const Address Address_Null = 0; /**< Size of a pointer in bytes (same as `sizeof(void*)`) */ -public const int64 Address_PointerSize = 0; +public const Address Address_PointerSize = 0; enum APLRes { diff --git a/sourcepawn b/sourcepawn index b8a92930..2134ed37 160000 --- a/sourcepawn +++ b/sourcepawn @@ -1 +1 @@ -Subproject commit b8a92930642efde670bc2bbbda86a622db648ade +Subproject commit 2134ed379eea7ddbc093b0d26b904638319e9aa3