From dbbfda0e96037da4f208ff8f00d181a5294484ae Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 22 Jun 2013 22:30:13 -0700 Subject: add new stuff stuff (with tests!), poison memcmp and strncpy --- src/common/mmo.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/common/mmo.hpp') diff --git a/src/common/mmo.hpp b/src/common/mmo.hpp index 14b8bac..450aa61 100644 --- a/src/common/mmo.hpp +++ b/src/common/mmo.hpp @@ -92,6 +92,15 @@ struct skill_value { unsigned short lv; SkillFlags flags; + + friend bool operator == (const skill_value& l, const skill_value& r) + { + return l.lv == r.lv && l.flags == r.flags; + } + friend bool operator != (const skill_value& l, const skill_value& r) + { + return !(l == r); + } }; struct global_reg -- cgit v1.2.3-60-g2f50