Closed drunderscore closed 4 months ago
Didn't realise this was here. But please take a look to PR #198 which should supersede this PR.
Valve didn't forget to downgrade the variable, it has been downgraded (they've stripped most instances of long
across the sdk) it's just our hl2sdk mirror doesn't reflect that yet. Once the other PR is merged, no changes to INVALID_EHANDLE_INDEX
value will be necessary.
That's fine -- it was either one or the other and I assume my investigation was faulty... probably because I've been speeding through trying to unbreak the many broken things 🙃
CBaseHandle::m_Index
is anunsigned long
, which is now 8 bytes long under 64-bit -- and Valve didn't downgrade this tounsigned int
to keep it 4 bytes.This is especially important for
CBaseHandle::IsValid
to properly function.