- use FString to manage strings in bot code.

This commit is contained in:
Christoph Oelckers 2020-04-11 12:11:22 +02:00
commit 5865c4dcca
4 changed files with 23 additions and 44 deletions

View file

@ -847,7 +847,7 @@ void FLevelLocals::CopyPlayer(player_t *dst, player_t *src, const char *name)
if (dst->Bot != nullptr)
{
botinfo_t *thebot = BotInfo.botinfo;
while (thebot && stricmp(name, thebot->name))
while (thebot && thebot->Name.CompareNoCase(name))
{
thebot = thebot->next;
}