Skip to content

Commit

Permalink
Write numCommands instead of commands.size() in CS_BEGIN_CUTSCENE
Browse files Browse the repository at this point in the history
  • Loading branch information
cadmic committed Mar 22, 2024
1 parent b3bfa14 commit de66ecc
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 de66ecc

Please sign in to comment.