diff options
Diffstat (limited to 'Stars45/Shot.h')
-rw-r--r-- | Stars45/Shot.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Stars45/Shot.h b/Stars45/Shot.h index 52f5a6c..2bd5d06 100644 --- a/Stars45/Shot.h +++ b/Stars45/Shot.h @@ -96,6 +96,8 @@ public: virtual bool Update(SimObject* obj);
virtual const char* GetObserverName() const;
+ int operator == (const Shot& s) const { return id == s.id; }
+
protected:
const Ship* owner;
|