Skip to content

Commit

Permalink
[garray] creation bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Nov 12, 2023
1 parent c14882c commit 8cdbdac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Pd/Patch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ t_gobj* Patch::createObject(int x, int y, String const& name)

instance->setThis();
auto* newArraySymbol = pd::Interface::getUnusedArrayName();
arrayPasta.replace("@arrName", String::fromUTF8(newArraySymbol->s_name));
arrayPasta = arrayPasta.replace("@arrName", String::fromUTF8(newArraySymbol->s_name));

pd::Interface::paste(patch.get(), arrayPasta.toRawUTF8());
return pd::Interface::getNewest(patch.get());
Expand Down

0 comments on commit 8cdbdac

Please sign in to comment.