From de66ecc4a8e1317d43dab20ef15be051ff62a68c Mon Sep 17 00:00:00 2001 From: cadmic Date: Thu, 21 Mar 2024 17:32:53 -0700 Subject: [PATCH] Write numCommands instead of commands.size() in CS_BEGIN_CUTSCENE --- ZAPD/ZCutscene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ZAPD/ZCutscene.cpp b/ZAPD/ZCutscene.cpp index 4cf37599..0bf0363d 100644 --- a/ZAPD/ZCutscene.cpp +++ b/ZAPD/ZCutscene.cpp @@ -24,7 +24,7 @@ std::string ZCutscene::GetBodySourceCode() const { std::string output = ""; - output += StringHelper::Sprintf(" CS_BEGIN_CUTSCENE(%i, %i),\n", commands.size(), endFrame); + output += StringHelper::Sprintf(" CS_BEGIN_CUTSCENE(%i, %i),\n", numCommands, endFrame); for (size_t i = 0; i < commands.size(); i++) { @@ -32,7 +32,7 @@ std::string ZCutscene::GetBodySourceCode() const output += " " + cmd->GenerateSourceCode(); } - output += StringHelper::Sprintf(" CS_END(),", commands.size(), endFrame); + output += StringHelper::Sprintf(" CS_END(),"); return output; }