fix: warning comparison of integers of different signs: 'uint32' (aka

'unsigned int') and 'int32' (aka 'int')
This commit is contained in:
Jelle Meeus
2024-04-12 01:00:01 +02:00
parent 48ee89b122
commit 2594208988

View File

@@ -204,7 +204,7 @@ public:
{
if (zombie->IsAlive())
{
int32 reduceHp = int32(zombie->GetMaxHealth() * 0.05f);
uint32 reduceHp = uint32(zombie->GetMaxHealth() * 0.05f);
if (zombie->GetHealth() > reduceHp)
zombie->SetHealth(reduceHp); // Reduce HP to 5%
zombie->SetWalk(true); // Set to walk