Merge branch 'azerothcore:master' into Playerbot

This commit is contained in:
ZhengPeiRu21
2022-04-22 09:13:49 -06:00
committed by GitHub
30 changed files with 128 additions and 82 deletions

View File

@@ -28,7 +28,7 @@ namespace MMAP
MMapMgr* MMapFactory::createOrGetMMapMgr()
{
if (g_MMapMgr == nullptr)
if (!g_MMapMgr)
{
g_MMapMgr = new MMapMgr();
}

View File

@@ -219,7 +219,7 @@ bool IsIPAddress(char const* ipaddress)
uint32 CreatePIDFile(std::string const& filename)
{
FILE* pid_file = fopen(filename.c_str(), "w");
if (pid_file == nullptr)
if (!pid_file)
{
return 0;
}