We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a443aad commit cc6789cCopy full SHA for cc6789c
scripting/tf2utils.sp
@@ -238,8 +238,9 @@ public void OnPluginStart() {
238
SetFailState("Could not determine location to read CTFPlayer::m_aObjects from.");
239
}
240
241
- offs_CTFPlayer_aObjects = LoadFromAddress(pOffsPlayerObjects, NumberType_Int32);
242
- if (offs_CTFPlayer_aObjects & ~0xFFFF) {
+ offs_CTFPlayer_aObjects = view_as<Address>(
+ LoadFromAddress(pOffsPlayerObjects, NumberType_Int32));
243
+ if (view_as<int>(offs_CTFPlayer_aObjects) & ~0xFFFF) {
244
// high bits are set - bad read?
245
SetFailState("Could not determine offset of CTFPlayer::m_aObjects (received %08x)",
246
offs_CTFPlayer_aObjects);
0 commit comments