2
0
mirror of https://github.com/rehlds/reapi.git synced 2025-03-13 05:50:16 +03:00

Update natives_misc.cpp (#92)

This commit is contained in:
Vaqtincha Oshiq 2017-11-23 11:02:41 +01:00 committed by Dmitry Novikov
parent d5ce26df88
commit 3b4deb15dc

View File

@ -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;
}
@ -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;
}