1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-22 03:40:49 +00:00

Merge branch 'fix_to_string' into 'master'

Fix Ptr::toString

See merge request OpenMW/openmw!4165
This commit is contained in:
Alexei Kotov 2024-06-09 14:25:34 +00:00
commit f0019cafaa

View File

@ -102,7 +102,7 @@ namespace MWWorld
{
if (mRef == nullptr)
return "null object";
std::string result = mRef->isDeleted() ? "object" : "deleted object";
std::string result = mRef->isDeleted() ? "deleted object" : "object";
result += mRef->mRef.getRefNum().toString();
result += " (";
result += mRef->getTypeDescription();