aboutsummaryrefslogtreecommitdiff
path: root/saga/puzzle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/puzzle.cpp')
-rw-r--r--saga/puzzle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/saga/puzzle.cpp b/saga/puzzle.cpp
index 26ef8ca518..9c76c61297 100644
--- a/saga/puzzle.cpp
+++ b/saga/puzzle.cpp
@@ -608,11 +608,11 @@ void Puzzle::giveHint(void) {
}
if (i >= 0) {
- char hintBuf[64];
- const char *hintPtr = hintBuf;
- sprintf(hintBuf, optionsStr[_lang][kROHint], pieceNames[piece]);
+ static char hintBuf[64];
+ static const char *hintPtr = hintBuf;
+ sprintf(hintBuf, optionsStr[_lang][kROHint], pieceNames[_lang][piece]);
- _vm->_actor->nonActorSpeech(_hintBox, &hintPtr, 1, PUZZLE_TOOL_SOUNDS + _hintSpeaker + piece, 0);
+ _vm->_actor->nonActorSpeech(_hintBox, &hintPtr, 1, PUZZLE_TOOL_SOUNDS + _hintSpeaker + piece * 3, 0);
}
else {
// If no pieces are in the wrong place