Don't offset the raplacement by 1 since there's no space now.

develop
Japa Illo 2017-02-06 10:50:18 +05:30
parent 5b83c6fe68
commit 64e217132e
1 changed files with 1 additions and 1 deletions

@ -114,7 +114,7 @@ DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_chan
if (digitPos > creatureRaw->creature_id.length())
digitPos = creatureRaw->creature_id.length();
creatureRaw->creature_id.replace(digitPos, std::string::npos, descriptors[foundIndex], 1, std::string::npos);
creatureRaw->creature_id.replace(digitPos, std::string::npos, descriptors[foundIndex]);
if (descriptorCount[foundIndex] > 0)
{