1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 03:15:32 +00:00

Text replace fix

This commit is contained in:
scrawl 2013-05-04 18:49:51 +02:00
parent 48c5e33c79
commit 0f2866dc15

View file

@ -140,7 +140,7 @@ namespace MWGui
std::string displayName = link;
MWDialogue::RemovePseudoAsterisks(displayName);
mText.replace(pos_begin, pos_end+1, displayName);
mText.replace(pos_begin, pos_end+1-pos_begin, displayName);
assert(topicLinks.find(topicName) != topicLinks.end());
hyperLinks[std::make_pair(pos_begin, pos_begin+displayName.size())] = intptr_t(topicLinks[topicName]);