Revert "Make Address a int64 if <virtual_address> is included (#2407)"

This reverts commit 2b5554a21d.
This commit is contained in:
Nicholas Hastings
2026-03-12 20:01:31 -04:00
parent 2b5554a21d
commit b492426a79
24 changed files with 300 additions and 224 deletions
+2 -2
View File
@@ -473,8 +473,8 @@ cell_t GetThisPtr(IPluginContext* pContext, void *iface, ThisPointerType type)
return -1;
return gamehelpers->EntityToBCompatRef((CBaseEntity *)iface);
}
if (pContext->GetRuntime()->FindPubvarByName("__Int64_Address__", nullptr) == SP_ERROR_NONE) {
return 0;
if (pContext->GetRuntime()->FindPubvarByName("__Virtual_Address__", nullptr) == SP_ERROR_NONE) {
return g_pSM->ToPseudoAddress(iface);
}
return (cell_t)iface;
}