fix exception

This commit is contained in:
Akash Mozumdar 2020-03-02 23:49:18 -07:00
parent 6a61342d19
commit b515a17767

View File

@ -63,8 +63,7 @@ bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo)
int64_t textHandle = sentenceInfo["text number"]; int64_t textHandle = sentenceInfo["text number"];
for (auto linkedHandle : linkedTextHandles[textHandle]) 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(*)(int64_t, const wchar_t*))sentenceInfo["void (*AddSentence)(int64_t number, const wchar_t* sentence)"])(linkedHandle, sentence.c_str());
((void*)sentenceInfo["this"], linkedHandle, sentence.c_str());
return false; return false;
} }