From b4761e43a9ab2e59c6f81956b220da933a3c8b54 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 22 May 2016 12:09:02 +0100 Subject: [PATCH] Don't check other functions if you've already found one to fire. --- src/battle/script.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/battle/script.c b/src/battle/script.c index e8be758..ff1e2e2 100644 --- a/src/battle/script.c +++ b/src/battle/script.c @@ -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;