Small fix

This commit is contained in:
Federico Cecchetto 2022-03-13 19:35:38 +01:00
parent 725e0605e8
commit a70fd7bd80

View File

@ -333,8 +333,7 @@ namespace command
} }
else if (arg == "health"s) else if (arg == "health"s)
{ {
if (params.size() > 2)
if (params.size() > 3)
{ {
const auto amount = atoi(params.get(2)); const auto amount = atoi(params.get(2));
const auto health = player.get("health").as<int>(); const auto health = player.get("health").as<int>();