diff --git a/src/script/ScriptedConversation.cpp b/src/script/ScriptedConversation.cpp index eaccc68263..f0115db76d 100644 --- a/src/script/ScriptedConversation.cpp +++ b/src/script/ScriptedConversation.cpp @@ -327,7 +327,6 @@ class SpeakCommand : public Command { CinematicSpeech acs; acs.type = ARX_CINE_SPEECH_NONE; - Entity * io = context.getEntity(); Entity * speaker = context.getEntity(); bool unbreakable = false; @@ -374,7 +373,7 @@ class SpeakCommand : public Command { DebugScript(' ' << options << ' ' << data); // TODO debug more if(data.empty()) { - ARX_SPEECH_ClearIOSpeech(io); + ARX_SPEECH_ClearIOSpeech(context.getEntity()); return Success; } @@ -393,7 +392,7 @@ class SpeakCommand : public Command { if(onspeechend != size_t(-1)) { aspeech[speechnum].scrpos = onspeechend; aspeech[speechnum].es = context.getScript(); - aspeech[speechnum].ioscript = io; + aspeech[speechnum].ioscript = context.getEntity(); if(unbreakable) { aspeech[speechnum].flags |= ARX_SPEECH_FLAG_UNBREAKABLE; }