This commit is contained in:
@@ -22,6 +22,9 @@ bool CreatureLib::Battling::ChoiceQueue::MoveCreatureChoiceNext(CreatureLib::Bat
|
||||
for (size_t i = choiceIndex - 1; i >= _current && i != SIZE_MAX; i--) {
|
||||
// Place everything in one spot later.
|
||||
_queue[i + 1] = _queue[i];
|
||||
if (i == 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// Set the creature choice up next.
|
||||
_queue[_current] = creatureChoice;
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CreatureLib::Battling {
|
||||
Library::Gender _gender;
|
||||
u8 _coloring;
|
||||
|
||||
u32 _currentHealth = -1;
|
||||
u32 _currentHealth = 0;
|
||||
|
||||
f32 _weight;
|
||||
f32 _height;
|
||||
|
||||
Reference in New Issue
Block a user