Skip to content

Commit

Permalink
fix: use rngManipFile
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Oct 12, 2024
1 parent c649102 commit 865e9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Features/RNGManip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ CON_COMMAND(sar_rng_save, "sar_rng_save [filename] - save RNG seed data to the s
std::string filename = "";
if (args.ArgC() == 1) {
if (tasPlayer->IsRunning()) {
filename = tasPlayer->playbackInfo.GetMainScript().path;
filename = tasPlayer->playbackInfo.GetMainScript().header.rngManipFile;
} else if (tasPlayer->previousPlaybackInfo.HasActiveSlot()) {
filename = tasPlayer->previousPlaybackInfo.GetMainScript().path;
filename = tasPlayer->previousPlaybackInfo.GetMainScript().header.rngManipFile;
} else {
console->Print(sar_rng_save.ThisPtr()->m_pszHelpString);
console->Print("No filename specified and no previous TAS script played\n");
Expand Down

0 comments on commit 865e9ca

Please sign in to comment.