From b515a177679f28e4963d2be1272e36ce46dc0d9b Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Mon, 2 Mar 2020 23:49:18 -0700 Subject: [PATCH] fix exception --- extensions/threadlinker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/threadlinker.cpp b/extensions/threadlinker.cpp index c284bdf..d7ed82e 100644 --- a/extensions/threadlinker.cpp +++ b/extensions/threadlinker.cpp @@ -63,8 +63,7 @@ bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo) int64_t textHandle = sentenceInfo["text number"]; for (auto linkedHandle : linkedTextHandles[textHandle]) - ((void(*)(void*, int64_t, const wchar_t*))sentenceInfo["void (*AddSentence)(void* this, int64_t number, const wchar_t* sentence)"]) - ((void*)sentenceInfo["this"], linkedHandle, sentence.c_str()); + ((void(*)(int64_t, const wchar_t*))sentenceInfo["void (*AddSentence)(int64_t number, const wchar_t* sentence)"])(linkedHandle, sentence.c_str()); return false; }