mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
fix: warning comparison of integers of different signs: 'uint32' (aka
'unsigned int') and 'int32' (aka 'int')
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user