Don't check other functions if you've already found one to fire.

This commit is contained in:
Steve 2016-05-22 12:09:02 +01:00
parent cda791cfe8
commit b4761e43a9
1 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,8 @@ void runScriptFunction(const char *format, ...)
tail = scriptRunner;
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, "Running script '%s'", funcNameBuffer);
return;
}
function = function->next;