fix 64bit entity hashing in 32bit build
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user