diff --git a/library/include/Core.h b/library/include/Core.h index a41aff927..dc2408ae9 100644 --- a/library/include/Core.h +++ b/library/include/Core.h @@ -106,10 +106,14 @@ namespace DFHack StateChangeScript(state_change_event event, std::string path, bool save_specific = false) :event(event), path(path), save_specific(save_specific) { } - bool operator==(const StateChangeScript& other) + bool const operator==(const StateChangeScript& other) { return event == other.event && path == other.path && save_specific == other.save_specific; } + bool const operator!=(const StateChangeScript& other) + { + return !(operator==(other)); + } }; // Core is a singleton. Why? Because it is closely tied to SDL calls. It tracks the global state of DF.