aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sword25/math/polygon.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sword25/math/polygon.h b/engines/sword25/math/polygon.h
index 3bd243f666..1b2a0b191c 100644
--- a/engines/sword25/math/polygon.h
+++ b/engines/sword25/math/polygon.h
@@ -193,6 +193,11 @@ public:
virtual bool persist(OutputPersistenceBlock &writer);
virtual bool unpersist(InputPersistenceBlock &reader);
+ Polygon &operator=(const Polygon &p) {
+ init(p.vertexCount, p.vertices);
+ return *this;
+ }
+
private:
bool _isCW;
bool _isConvex;