Skip to content

Commit

Permalink
fix: I, F specifiers initial value random, not zero
Browse files Browse the repository at this point in the history
  • Loading branch information
dockfries committed Feb 9, 2024
1 parent 2eb30c7 commit 289b91b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/natives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ namespace sampnode
case 'I':
{
vars++;
param_value[i] = 0;
params[j++] = static_cast<void*>(&param_value[i]);
sprintf(str_format, "%sR", str_format);
}
Expand Down Expand Up @@ -474,6 +475,7 @@ namespace sampnode
case 'I':
{
vars++;
param_value[i] = 0;
params[j++] = static_cast<void*>(&param_value[i]);
sprintf(str_format, "%sR", str_format);
}
Expand Down

0 comments on commit 289b91b

Please sign in to comment.