summaryrefslogtreecommitdiffstats
path: root/src/core/AssetManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/AssetManager.hpp')
-rw-r--r--src/core/AssetManager.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/AssetManager.hpp b/src/core/AssetManager.hpp
index b378764..ebb339f 100644
--- a/src/core/AssetManager.hpp
+++ b/src/core/AssetManager.hpp
@@ -33,12 +33,18 @@ struct BlockTextureId {
int state:4;
int side:3;
+
+
bool operator<(const BlockTextureId &rhs) const {
if (id < rhs.id)
return true;
if (rhs.id < id)
return false;
- return state < rhs.state;
+ if (state < rhs.state)
+ return true;
+ if (rhs.state < state)
+ return false;
+ return side < rhs.side;
}
};