mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
GUI: fix wave edit randomize
This commit is contained in:
parent
47fb434d5b
commit
7486bb17f4
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ void FurnaceGUI::drawWaveEdit() {
|
|||
if (ImGui::Button("Randomize",buttonSize)) {
|
||||
if (wave->max>0) e->lockEngine([this,wave]() {
|
||||
for (int i=0; i<wave->len; i++) {
|
||||
wave->data[i]=rand()%wave->max;
|
||||
wave->data[i]=rand()%(wave->max+1);
|
||||
}
|
||||
MARK_MODIFIED;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue