mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-09-25 10:12:52 -04:00
newer standards prefer nullptr over NULL - this is most of them but there are others too
This commit is contained in:
@@ -53,14 +53,14 @@ ServerObject * ServerWorld::createObjectFromTemplate(uint32 templateCrc, const N
|
||||
WARNING(!objectTemplate, ("Missing Template! Can't create object from "
|
||||
"template crc %lu(%s), file not found", templateCrc,
|
||||
ObjectTemplateList::lookUp(templateCrc).getString()));
|
||||
Object *object = NULL;
|
||||
Object *object = nullptr;
|
||||
|
||||
if (objectTemplate)
|
||||
{
|
||||
ServerObjectTemplate const * serverObjectTemplate = objectTemplate->asServerObjectTemplate();
|
||||
|
||||
if ( (serverObjectTemplate == NULL)
|
||||
|| ((serverObjectTemplate != NULL) && (ObjectTemplateList::lookUp(serverObjectTemplate->getSharedTemplate().c_str()).getCrc() != 0)))
|
||||
if ( (serverObjectTemplate == nullptr)
|
||||
|| ((serverObjectTemplate != nullptr) && (ObjectTemplateList::lookUp(serverObjectTemplate->getSharedTemplate().c_str()).getCrc() != 0)))
|
||||
{
|
||||
PROFILER_AUTO_BLOCK_DEFINE("ObjectTemplate::createObject");
|
||||
object = objectTemplate->createObject();
|
||||
|
||||
Reference in New Issue
Block a user