Merge pull request #276 from Arkshine/fix/ham-command

Fix "ham hooks" command not displaying all current hooks of a plugin
This commit is contained in:
Vincent Herbet 2015-07-31 15:43:29 +02:00
commit 6d7daf787d

View File

@ -92,7 +92,7 @@ void HamCommand(void)
int count = 0; int count = 0;
for (int i=0; i<HAM_LAST_ENTRY_DONT_USE_ME_LOL; i++) for (int i=0; i<HAM_LAST_ENTRY_DONT_USE_ME_LOL; i++)
{ {
for (size_t j = 0; j < hooks[i].length(); ++i) for (size_t j = 0; j < hooks[i].length(); ++j)
{ {
HookCount++; HookCount++;
ForwardCount += hooks[i].at(j)->pre.length() + hooks[i].at(j)->post.length(); ForwardCount += hooks[i].at(j)->pre.length() + hooks[i].at(j)->post.length();