diff options
author | Colin Snover | 2017-02-21 15:07:33 -0600 |
---|---|---|
committer | Colin Snover | 2017-04-22 19:38:12 -0500 |
commit | f6c4e0c7c7278d643cd723cebae812d2894e27c1 (patch) | |
tree | d9fd2064ebb296c33c1c05dcdc966da2e3d54d2e /engines | |
parent | 8a5eb0c7844fc2103df24dae8002938ee57d2064 (diff) | |
download | scummvm-rg350-f6c4e0c7c7278d643cd723cebae812d2894e27c1.tar.gz scummvm-rg350-f6c4e0c7c7278d643cd723cebae812d2894e27c1.tar.bz2 scummvm-rg350-f6c4e0c7c7278d643cd723cebae812d2894e27c1.zip |
SCI: Improve message when crashing due to a bad selector
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/vm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index 7e514a2dc6..ad6234b68e 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -294,7 +294,7 @@ ExecStack *send_selector(EngineState *s, reg_t send_obj, reg_t work_obj, StackPt SelectorType selectorType = lookupSelector(s->_segMan, send_obj, selector, &varp, &funcp); if (selectorType == kSelectorNone) - error("Send to invalid selector 0x%x of object at %04x:%04x", 0xffff & selector, PRINT_REG(send_obj)); + error("Send to invalid selector 0x%x (%s) of object at %04x:%04x", 0xffff & selector, g_sci->getKernel()->getSelectorName(0xffff & selector).c_str(), PRINT_REG(send_obj)); ExecStackType stackType = EXEC_STACK_TYPE_VARSELECTOR; StackPtr curSP = NULL; |