Fixed setinv cheat

This commit is contained in:
Boondorl 2025-03-14 19:39:29 -04:00 committed by Ricardo Luís Vaz Silva
parent d0e056565b
commit 345926f057
2 changed files with 2 additions and 2 deletions

View file

@ -570,7 +570,7 @@ FString cht_Morph(player_t *player, PClassActor *morphclass, bool quickundo)
void cht_SetInv(player_t *player, const char *string, int amount, bool beyond)
{
if (!player->mo) return;
IFVIRTUALPTRNAME(player->mo, NAME_PlayerPawn, CheatTakeInv)
IFVIRTUALPTRNAME(player->mo, NAME_PlayerPawn, CheatSetInv)
{
FString message = string;
VMValue params[] = { player->mo, &message, amount, beyond };

View file

@ -403,7 +403,7 @@ extend class PlayerPawn
virtual void CheatSetInv(String strng, int amount, bool beyond)
{
if (!(strng ~== "health"))
if (strng ~== "health")
{
if (amount <= 0)
{