Bump sp module + address fix (#2430)
This commit is contained in:
@@ -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*);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
+1
-1
Submodule sourcepawn updated: b8a9293064...2134ed379e
Reference in New Issue
Block a user