Skip to content

Commit

Permalink
Fix for overloaded InterlockedOp functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRichards-Code committed Jan 10, 2025
1 parent 8970851 commit 885e413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Applications/Sfx/Sfx.ypp
Original file line number Diff line number Diff line change
Expand Up @@ -2187,7 +2187,7 @@ postfix_exp : primary_exp

const SfxConfig *config = gEffect->GetConfig();
const std::string &interlockedOpSyntax = config->interlockedOpSyntax;
if (interlockedOpSyntax.length() > 0)
if (interlockedOpSyntax.length() > 0 && (*params2).size() == 2)
{
string cmd = interlockedOpSyntax;
find_and_replace(cmd, "{command}", command);
Expand Down

0 comments on commit 885e413

Please sign in to comment.