diff --git a/src/game/ToolButton.cpp b/src/game/ToolButton.cpp index 3021b4017..aa31b3de2 100644 --- a/src/game/ToolButton.cpp +++ b/src/game/ToolButton.cpp @@ -20,7 +20,7 @@ void ToolButton::OnMouseClick(int x, int y, unsigned int button) isButtonDown = true; } -void ToolButton::OnMouseUp(int x, int y, unsigned int button) +void ToolButton::OnMouseUnclick(int x, int y, unsigned int button) { if(isButtonDown) { diff --git a/src/game/ToolButton.h b/src/game/ToolButton.h index db0cfac0c..b311d0b92 100644 --- a/src/game/ToolButton.h +++ b/src/game/ToolButton.h @@ -14,7 +14,7 @@ class ToolButton: public ui::Button { int currentSelection; public: ToolButton(ui::Point position, ui::Point size, std::string text_, std::string toolTip = ""); - virtual void OnMouseUp(int x, int y, unsigned int button); + virtual void OnMouseUnclick(int x, int y, unsigned int button); virtual void OnMouseClick(int x, int y, unsigned int button); virtual void Draw(const ui::Point& screenPos); void SetSelectionState(int state);