aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/inventory.cpp
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-05-05 23:58:16 +0200
committerAdrian Frühwirth2018-05-06 00:00:38 +0200
commitb09dab8c9fc6e4d3af35d154921a03c9511dd688 (patch)
treec63e8877e8ed94396c06ee31690853caa48dc8e3 /engines/prince/inventory.cpp
parent13a08a0bb0ac9153e7f597bf7b906329548024e3 (diff)
downloadscummvm-rg350-b09dab8c9fc6e4d3af35d154921a03c9511dd688.tar.gz
scummvm-rg350-b09dab8c9fc6e4d3af35d154921a03c9511dd688.tar.bz2
scummvm-rg350-b09dab8c9fc6e4d3af35d154921a03c9511dd688.zip
PRINCE: Add FIXMEs for potential bugs
Diffstat (limited to 'engines/prince/inventory.cpp')
-rw-r--r--engines/prince/inventory.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/prince/inventory.cpp b/engines/prince/inventory.cpp
index fdb17b1182..3183b94334 100644
--- a/engines/prince/inventory.cpp
+++ b/engines/prince/inventory.cpp
@@ -394,6 +394,9 @@ void PrinceEngine::inventoryLeftMouseButton() {
int invObjExamEvent = _script->scanMobEvents(_invMobList[_selectedMob]._mask, _script->_scriptInfo.invObjExam);
if (invObjExamEvent == -1) {
// do_standard
+ // FIXME: UB?
+ // Constness of the pointer returned by c_str() is cast away (which generates a compiler warning)
+ // while it potentially gets modified inside printAt()
printAt(0, 216, (char *)_invMobList[_selectedMob]._examText.c_str(), kNormalWidth / 2, _invExamY);
_interpreter->setCurrentString(_invMobList[_selectedMob]._mask + 70000);
setVoice(0, 28, 1);