diff --git a/src/m_cheat.cpp b/src/m_cheat.cpp index d656ef990..c4f368b59 100644 --- a/src/m_cheat.cpp +++ b/src/m_cheat.cpp @@ -575,7 +575,7 @@ FString cht_Morph(player_t *player, PClassActor *morphclass, bool quickundo) FString message; VMReturn msgret(&message); VMValue params[3] = { player->mo, morphclass, quickundo }; - VMCall(func, params, 3, nullptr, 0); + VMCall(func, params, 3, &msgret, 1); return message; } return ""; diff --git a/wadsrc/static/zscript/shared/player_cheat.txt b/wadsrc/static/zscript/shared/player_cheat.txt index d450ee447..1a222386e 100644 --- a/wadsrc/static/zscript/shared/player_cheat.txt +++ b/wadsrc/static/zscript/shared/player_cheat.txt @@ -414,14 +414,14 @@ extend class PlayerPawn { if (!quickundo && oldclass != morphclass && MorphPlayer (player, morphclass, 0, style)) { - return StringTable.Localize("TXT_STRANGER"); + return StringTable.Localize("$TXT_STRANGER"); } - return StringTable.Localize("TXT_NOTSTRANGE"); + return StringTable.Localize("$TXT_NOTSTRANGE"); } } else if (MorphPlayer (player, morphclass, 0, style)) { - return StringTable.Localize("TXT_STRANGE"); + return StringTable.Localize("$TXT_STRANGE"); } return ""; }