diff --git a/src/ScummRp/block.hpp b/src/ScummRp/block.hpp index 45f5240..c59a4df 100644 --- a/src/ScummRp/block.hpp +++ b/src/ScummRp/block.hpp @@ -742,7 +742,7 @@ class OldRoom : public RoomBlock uint16 offset; uint16 size; - bool operator<(const OIInfo &right) const { return offset < right.offset; } + bool operator<(const OIInfo &right) const { return offset < right.offset && num < right.num; } OIInfo(int n, uint16 o, uint16 s) : num(n), offset(o), size(s) { } };