Skip to content

Commit

Permalink
Write numCommands instead of commands.size() in CS_BEGIN_CUTSCENE (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
cadmic authored Mar 22, 2024
1 parent c906b91 commit 1300a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZAPD/ZCutscene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ 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++)
{
CutsceneCommand* cmd = commands[i];
output += " " + cmd->GenerateSourceCode();
}

output += StringHelper::Sprintf(" CS_END(),", commands.size(), endFrame);
output += StringHelper::Sprintf(" CS_END(),");

return output;
}
Expand Down

0 comments on commit 1300a4f

Please sign in to comment.