Bump sp module + address fix (#2430)

This commit is contained in:
Benoist
2026-04-02 21:33:38 +02:00
committed by GitHub
parent 59ecab555b
commit d5cc622227
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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<int64_t*>(var->offs) = sizeof(void*);
}
}
+2 -2
View File
@@ -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
{