diff options
author | Torbjörn Andersson | 2004-04-24 12:29:35 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-04-24 12:29:35 +0000 |
commit | a575576890045caf4beda9dacb7923558e7f3003 (patch) | |
tree | 5cd53b8c2057241031067d372c470c34a5a13c2c /sword2/events.cpp | |
parent | 94962f6655f543f924048c23a6559932b089666b (diff) | |
download | scummvm-rg350-a575576890045caf4beda9dacb7923558e7f3003.tar.gz scummvm-rg350-a575576890045caf4beda9dacb7923558e7f3003.tar.bz2 scummvm-rg350-a575576890045caf4beda9dacb7923558e7f3003.zip |
fetchObjectName() no longer assumes that the resource will still be in the
cache after it's been closed. (Currently it always is, but ideally I'd like
for BS to work even if resource caching is disabled.)
svn-id: r13610
Diffstat (limited to 'sword2/events.cpp')
-rw-r--r-- | sword2/events.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sword2/events.cpp b/sword2/events.cpp index f567118c5c..e318529efb 100644 --- a/sword2/events.cpp +++ b/sword2/events.cpp @@ -194,11 +194,12 @@ void Logic::printEventList(void) { for (uint32 i = 0; i < MAX_events; i++) { if (_eventList[i].id) { + byte buf[NAME_LEN]; uint32 target = _eventList[i].id; uint32 script = _eventList[i].interact_id; - Debug_Printf("slot %2d: id = %s (%d)\n", i, _vm->fetchObjectName(target), target); - Debug_Printf(" script = %s (%d) pos %d\n", _vm->fetchObjectName(script / 65536), script / 65536, script % 65536); + Debug_Printf("slot %2d: id = %s (%d)\n", i, _vm->fetchObjectName(target, buf), target); + Debug_Printf(" script = %s (%d) pos %d\n", _vm->fetchObjectName(script / 65536, buf), script / 65536, script % 65536); } } } |