Skip to content

Commit

Permalink
const access to last element
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasByr committed Jun 20, 2023
1 parent 84e9ef9 commit af8e22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void Renderer::push() {
}

void Renderer::pop() {
struct Config c = m_config_stack.back();
const struct Config c = m_config_stack.back();
m_config_stack.pop_back();
m_rect_mode = c.rect_mode;
m_trans_x = c.trans_x;
Expand Down

0 comments on commit af8e22b

Please sign in to comment.