diff options
Diffstat (limited to 'src/object/object.cpp')
-rw-r--r-- | src/object/object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/object.cpp b/src/object/object.cpp index 5a709e6..f1de424 100644 --- a/src/object/object.cpp +++ b/src/object/object.cpp @@ -7263,10 +7263,10 @@ int CObject::GetDefRank() // Getes the object name for the tooltip. -bool CObject::GetTooltipName(char* name) +bool CObject::GetTooltipName(std::string& name) { GetResource(RES_OBJECT, m_type, name); - return ( name[0] != 0 ); + return !name.empty(); } |