Skip to content

Commit

Permalink
Update natives_misc.cpp (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaqtincha authored and s1lentq committed Nov 23, 2017
1 parent d5ce26d commit 3b4deb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reapi/src/natives/natives_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,7 @@ cell AMX_NATIVE_CALL rg_set_iteminfo(AMX *amx, cell *params)
return FALSE;
}

if (pWeapon->IsWeapon()) {
if (!pWeapon->IsWeapon()) {
AMXX_LogError(amx, AMX_ERR_NATIVE, "%s: #%d entity is not a weapon.", __FUNCTION__, indexOfEdict(pWeapon->pev));
return FALSE;
}
Expand Down Expand Up @@ -2023,7 +2023,7 @@ cell AMX_NATIVE_CALL rg_get_iteminfo(AMX *amx, cell *params)
return FALSE;
}

if (pWeapon->IsWeapon()) {
if (!pWeapon->IsWeapon()) {
AMXX_LogError(amx, AMX_ERR_NATIVE, "%s: #%d entity is not a weapon.", __FUNCTION__, indexOfEdict(pWeapon->pev));
return FALSE;
}
Expand Down

0 comments on commit 3b4deb1

Please sign in to comment.