- Joined
- Jun 27, 2010
- Messages
- 1,075
- Reaction score
- 1,499
Fix by deepseek.ive been searching forum but when i create kali and when tried to log it the game crash? im using 169
file DnDungeonInfoDlg.cpp line 128
Code:
if(wcslen(GetEtUIXML().GetUIString( CEtUIXML::idCategory1, nStringTableID )) > 10)
{
//Fix Kali crash Tutorial
const wchar_t* oldName = GetEtUIXML().GetUIString(CEtUIXML::idCategory1, nStringTableID);
size_t len = wcslen(oldName);
if (len > 10)
{
wchar_t newName[20];
// copy at most 15 chars, always null-terminate
wcsncpy_s(newName, _countof(newName), oldName, 15);
newName[15] = L'\0'; // ensure termination
wcscat_s(newName, _countof(newName), L"...");
m_pStaticMapName->SetText(newName);
m_pStaticMapName->SetTooltipText(oldName);
}
}

