Fix for amb1452 - ns_give_item was giving wrong items

This commit is contained in:
Steve Dudenhoeffer 2008-03-04 17:19:15 +00:00
parent b9d98ede39
commit 80db0ed0b3

View File

@ -87,7 +87,7 @@ public:
while (iter!=end)
{
if (strcmp(str,(*iter)->c_str()))
if (strcmp(str, (*iter)->c_str()) == 0)
{
// String is already in the list, do not allocate it again
return MAKE_STRING((*iter)->c_str());