More sanitizer fixes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-03-25 19:21:02 +01:00
parent 38a26888be
commit bc1f78c8bd
4 changed files with 6 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ Creature* CreateCreature::Create() {
}
auto identifier = this->_identifier;
if (identifier == 0) {
identifier = rand.Get();
identifier = rand.GetUnsigned();
}
auto gender = this->_gender;
if (gender == static_cast<Library::Gender>(-1)) {

View File

@@ -34,7 +34,7 @@ namespace CreatureLib::Battling {
Library::Gender _gender;
u8 _coloring;
u32 _currentHealth = -1;
u32 _currentHealth = 0;
f32 _weight;
f32 _height;