diff options
| author | Louis <35883445+louist103@users.noreply.github.com> | 2023-10-22 11:37:36 -0400 |
|---|---|---|
| committer | Louis <35883445+louist103@users.noreply.github.com> | 2023-10-22 11:37:36 -0400 |
| commit | cc8bd2fd01672446bb2f4613f402f2310f5ce62d (patch) | |
| tree | 2b654661000be9e039055b2f2826ff6b0e1dfc5d /ZAPD/OtherStructs/CutsceneMM_Commands.cpp | |
| parent | 3d8a9c1efe15ad84bfca78a5a08a02489d8ed98c (diff) | |
Fixes for MM
Diffstat (limited to 'ZAPD/OtherStructs/CutsceneMM_Commands.cpp')
| -rw-r--r-- | ZAPD/OtherStructs/CutsceneMM_Commands.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ZAPD/OtherStructs/CutsceneMM_Commands.cpp b/ZAPD/OtherStructs/CutsceneMM_Commands.cpp index 85fce22..508a7b4 100644 --- a/ZAPD/OtherStructs/CutsceneMM_Commands.cpp +++ b/ZAPD/OtherStructs/CutsceneMM_Commands.cpp @@ -76,16 +76,17 @@ std::string CutsceneMMSubCommandEntry_GenericCmd::GetBodySourceCode() const type = base ? "true" : "false"; if (type != "") - return StringHelper::Sprintf(entryFmt.c_str(), type.c_str(), startFrame, endFrame, pad); + return StringHelper::Sprintf("%s", entryFmt.c_str(), type.c_str(), startFrame, endFrame, + pad); if (commandId == CutsceneMM_CommandType::CS_CMD_LIGHT_SETTING || commandId == CutsceneMM_CommandType::CS_CMD_START_SEQ || commandId == CutsceneMM_CommandType::CS_CMD_STOP_SEQ) { - return StringHelper::Sprintf(entryFmt.c_str(), base - 1, startFrame, endFrame, pad); + return StringHelper::Sprintf("%s", entryFmt.c_str(), base - 1, startFrame, endFrame, pad); } - return StringHelper::Sprintf(entryFmt.c_str(), base, startFrame, endFrame, pad); + return StringHelper::Sprintf("%s", entryFmt.c_str(), base, startFrame, endFrame, pad); } CutsceneMMCommand_GenericCmd::CutsceneMMCommand_GenericCmd(const std::vector<uint8_t>& rawData, |
