Skip to content

Commit 3d80fdd

Browse files
committed
Fix incorrect input buffer passed to OnSignalEntityPin for output pin
1 parent 6a70c02 commit 3d80fdd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Mods/Editor/Src/Components/EntityProperties.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ void Editor::DrawEntityProperties() {
426426
static char s_OutputPinInput[1024] = {};
427427

428428
if (ImGui::Button(ICON_MD_BOLT "##fireOutputPin")) {
429-
OnSignalEntityPin(s_SelectedEntity, s_InputPinInput, true);
429+
OnSignalEntityPin(s_SelectedEntity, s_OutputPinInput, true);
430430
s_OutputPinInput[0] = '\0';
431431
}
432432

@@ -435,7 +435,7 @@ void Editor::DrawEntityProperties() {
435435
if (ImGui::InputText(
436436
"Out", s_OutputPinInput, IM_ARRAYSIZE(s_OutputPinInput), ImGuiInputTextFlags_EnterReturnsTrue
437437
)) {
438-
OnSignalEntityPin(s_SelectedEntity, s_InputPinInput, true);
438+
OnSignalEntityPin(s_SelectedEntity, s_OutputPinInput, true);
439439
s_OutputPinInput[0] = '\0';
440440
}
441441

0 commit comments

Comments
 (0)