I'm adding items to a ListPanel and I iterate through a KeyValues
object. Works fine, except:

while(pInventory)
{
const char *pToken = pInventory->GetString("name");
               const char *pName = Items->GetInvItemName(pToken);

               DevMsg("name: %s\n", pName);

               // Set name
               pInventory->SetString("localized", pName);

               m_pInventory->AddItem(pInventory, 0, false, false);

               pInventory = pInventory->GetNextKey();
}

When it displays it, it just has a "t" character. But the dev msg
displays it fine. I've also tried creating a different KV object and
assigning it, but that doesn't work either.
--
Kamran A
Get Firefox! Safer, Faster, Better.
<http://www.spreadfirefox.com/?q=affiliates&id=0&t=85>
Down with Internet Explorer! Say "NO!" to Spyware! Use Firefox

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to