Skip to content

Commit

Permalink
imgui: Safer table functions
Browse files Browse the repository at this point in the history
  • Loading branch information
aardappel committed May 20, 2024
1 parent 7f7061c commit 1f095fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/src/imbind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1675,14 +1675,14 @@ nfr("table_next_row", "", "", "",
"",
[](StackPtr &, VM &vm) {
IsInit(vm);
/*if (NTop() == N_TABLE)*/ ImGui::TableNextRow();
if (ImGui::TableGetColumnCount()) ImGui::TableNextRow();
});

nfr("table_next_column", "", "", "",
"",
[](StackPtr &, VM &vm) {
IsInit(vm);
/*if (NTop() == N_TABLE)*/ ImGui::TableNextColumn();
if (ImGui::TableGetColumnCount()) ImGui::TableNextColumn();
});

nfr("table_end", "", "", "",
Expand Down

0 comments on commit 1f095fb

Please sign in to comment.