From 82a739a95e763b6d7f616d6445b7ba2c5d0bd7f1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 17 Apr 2006 12:57:52 +0000 Subject: [PATCH] register_plugin returns id --- amxmodx/amxmodx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index d3f30a03..74de9e19 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -1032,7 +1032,7 @@ static cell AMX_NATIVE_CALL register_plugin(AMX *amx, cell *params) /* 3 param * a->setVersion(vers); a->setAuthor(author); - return 1; + return a->getId(); } static cell AMX_NATIVE_CALL register_menucmd(AMX *amx, cell *params) /* 3 param */