Add spaces to search string programmatically.

develop
Japa Illo 2017-02-06 10:49:22 +05:30
parent 1aef1d1b98
commit 5b83c6fe68
1 changed files with 27 additions and 27 deletions

@ -100,7 +100,7 @@ DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_chan
for (size_t j = 0; j < descriptors.size(); j++)
{
size_t pos = creatureRaw->caste[0]->description.find(descriptors[j]);
size_t pos = creatureRaw->caste[0]->description.find(" " + descriptors[j]);
if (pos < minPos)
{
minPos = pos;