Replaced PID number in ScannerAutomapHook() with its define name for better understandability.

This commit is contained in:
NovaRain
2017-02-13 15:46:49 +08:00
parent 16be32d284
commit cc00a2c162
+1 -1
View File
@@ -718,7 +718,7 @@ static const DWORD ScannerHookFail=0x41BC65;
static void __declspec(naked) ScannerAutomapHook() {
__asm {
mov eax, ds:[_obj_dude];
mov edx, 59;
mov edx, PID_MOTION_SENSOR;
call inven_pid_is_carried_ptr_;
test eax, eax;
jz fail;