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:
parent
48c5e33c79
commit
0f2866dc15
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue