mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
SCI: Do not try to dereference object name when it's not a pointer.
Stops flood of warnings in some Mac titles. svn-id: r55849
This commit is contained in:
parent
058d75b708
commit
386203a3d6
@ -254,7 +254,9 @@ const char *SegManager::getObjectName(reg_t pos) {
|
||||
if (nameReg.isNull())
|
||||
return "<no name>";
|
||||
|
||||
const char *name = derefString(nameReg);
|
||||
const char *name = 0;
|
||||
if (nameReg.segment)
|
||||
name = derefString(nameReg);
|
||||
if (!name)
|
||||
return "<invalid name>";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user