浏览代码

Re-order declaration of 2 variables, and fix a typo.

Frank Zago 16 年之前
父节点
当前提交
ac7c7a3d23
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/AdventureMapButton.h

+ 2 - 2
client/AdventureMapButton.h

@@ -83,8 +83,8 @@ class CHighlightableButton
 public:
 	CHighlightableButton(const CFunctionList<void()> &onSelect, const CFunctionList<void()> &onDeselect, const std::map<int,std::string> &Name, const std::string &HelpBox, bool playerColoredButton, const std::string &defName, std::vector<std::string> * add, int x, int y, int key=0);
 	CHighlightableButton(const std::pair<std::string, std::string> help, const CFunctionList<void()> &onSelect, int x, int y, const std::string &defName, int myid, int key=0, std::vector<std::string> * add = NULL, bool playerColoredButton = false );//c-tor
-	bool selected, onlyOn;
-	CFunctionList<void()> callback2; //when disselecting
+	bool onlyOn, selected;
+	CFunctionList<void()> callback2; //when de-selecting
 	void select(bool on);
 	void clickLeft(tribool down, bool previousState);
 };