From ff0ca9ba6785d58d32a54deee110e622ad619381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Gr=C3=BCnbacher?= Date: Mon, 11 May 2015 00:12:07 +0200 Subject: [PATCH] Engine: Remove inconsistent error path from entity_get_int() --- modules/engine/entity.cpp | 1 - plugins/include/engine.inc | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/engine/entity.cpp b/modules/engine/entity.cpp index a0fc86c8..48e5e642 100644 --- a/modules/engine/entity.cpp +++ b/modules/engine/entity.cpp @@ -609,7 +609,6 @@ static cell AMX_NATIVE_CALL entity_get_int(AMX *amx, cell *params) iRetValue = pEnt->v.deadflag; break; default: - MF_LogError(amx, AMX_ERR_NATIVE, "Invalid property %d", idx); return 0; break; } diff --git a/plugins/include/engine.inc b/plugins/include/engine.inc index 8e0fd069..e355dcd4 100755 --- a/plugins/include/engine.inc +++ b/plugins/include/engine.inc @@ -380,8 +380,8 @@ native bool:entity_intersects(entity, other); * @param iKey Entry to retrieve from * * @return Value of specified entry - * @error If an invalid entity index or entry is provided, an error - * will be thrown. + * @error If an invalid entity index is provided, an error will be + * thrown. */ native entity_get_int(iIndex, iKey);