1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-01 22:06:42 +00:00

[Client] Fix if check in ObjectList::setMemberShorts()

This commit is contained in:
David Cernat 2019-10-11 21:53:53 +03:00
parent 19418f4953
commit 02bca3f52d

View file

@ -815,7 +815,7 @@ void ObjectList::setMemberShorts()
// Mimic the way a Ptr is fetched in InterpreterContext for similar situations
MWWorld::Ptr ptrFound = MWBase::Environment::get().getWorld()->searchPtr(baseObject.refId, false);
if (!ptrFound.isEmpty())
if (ptrFound)
{
LOG_APPEND(TimedLog::LOG_VERBOSE, "-- Found %s %i-%i", ptrFound.getCellRef().getRefId().c_str(),
ptrFound.getCellRef().getRefNum(), ptrFound.getCellRef().getMpNum());