mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
fix compile error on mingw32, add lua events for channels
This commit is contained in:
@@ -44,8 +44,8 @@ typedef std::function<bool()> BooleanCallback;
|
||||
|
||||
// boolean with default value initializer
|
||||
template<bool def>
|
||||
struct boolean {
|
||||
boolean() : v(def) { }
|
||||
struct Boolean {
|
||||
Boolean() : v(def) { }
|
||||
operator bool &() { return v; }
|
||||
operator bool const &() const { return v; }
|
||||
bool& operator=(const bool& o) { v = o; return v; }
|
||||
|
Reference in New Issue
Block a user