fix 64bit entity hashing in 32bit build

This commit is contained in:
Turanszki Janos
2020-05-02 02:27:07 +01:00
parent 659d195595
commit e77647659a
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -3,7 +3,6 @@
#include "wiArchive.h"
#include "wiRandom.h"
#include "wiHelper.h"
#include <cstdint>
#include <cassert>
@@ -28,7 +27,7 @@ namespace wiECS
archive >> entity;
if (entity != INVALID_ENTITY && seed > 0)
{
wiHelper::hash_combine(entity, seed);
entity = ((entity << 1) ^ seed) >> 1;
}
}
else
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 40;
// minor bug fixes, alterations, refactors, updates
const int revision = 5;
const int revision = 6;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);