Skip to content

Commit

Permalink
Renamed variable to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketz committed Nov 29, 2024
1 parent c964647 commit 5ce6d40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/widgets/breakpoints.cc
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ void PCSX::Widgets::Breakpoints::draw(const char* title) {
char* endPtr;
uint32_t breakpointAddress = strtoul(m_bpAddressString, &endPtr, 16);

static int breakCondition2 = 0;
static int breakConditionImguiValue = 0;
static int conditionVal = 0;

Debug::BreakpointCondition breakCondition;
Debug::BreakpointType type = (Debug::BreakpointType)m_breakpointType;
if (type != Debug::BreakpointType::Exec) {
ImGui::Combo(_("Break Condition"), &breakCondition2, _("Always\0Change\0Greater\0Less\0Equal\0"));
breakCondition = (Debug::BreakpointCondition)breakCondition2;
ImGui::Combo(_("Break Condition"), &breakConditionImguiValue, _("Always\0Change\0Greater\0Less\0Equal\0"));
breakCondition = (Debug::BreakpointCondition)breakConditionImguiValue;

switch (breakCondition) {
default:
Expand Down

0 comments on commit 5ce6d40

Please sign in to comment.