Skip to content

Commit

Permalink
fix pop back without size check
Browse files Browse the repository at this point in the history
  • Loading branch information
Archez committed Mar 14, 2024
1 parent 690118f commit eb94d98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/graphic/Fast3D/gfx_pc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2567,7 +2567,9 @@ Gfx* GfxExecStack::ret() {

while (cmd_stack.size() > 0 && cmd_stack.top() == nullptr) {
cmd_stack.pop();
gfx_path.pop_back();
if (!gfx_path.empty()) {
gfx_path.pop_back();
}
}
return cmd;
}
Expand Down

0 comments on commit eb94d98

Please sign in to comment.