I am 99.9% sure that you will not get the full list of entities going through the list that way HansW.
I'm pretty sure that the WarListEntry contains a link to another WarListEntry, at offset 8. Assuming we add a WarEntryList * after m_pItem, and we call it m_pNextEntry, the loop would be as followed:
Code:
WarList* m_pMainEntityList;
m_pMainEntityList = (WarList*)*((DWORD*)0x00D3D2C8);
for (DWORD i=0 ; i < m_pMainEntityList->m_Size ; i++) {
WarListEntry *pEntry = ((WarListEntry*)m_pMainEntityList->m_pList[i]);
while (pEntry) {
WarEntityBase* pEntity = ((WarListEntry*)m_pMainEntityList->m_pList[i])->m_pItem;
pEntry = ((WarListEntry*)m_pMainEntityList->m_pList[i])->m_pNextEntry;
}
}
I, for the love of god, cant remember where I saw that piece of code though
But I did find it several patches ago and its the same for the list with names.