mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
map_extract: Only access map info if it exists
Noticed on map Paranormal
This commit is contained in:
parent
17e77d73bb
commit
ca094df46b
|
@ -26,10 +26,13 @@ bool Process(IStorage *pStorage, const char *pMapName, const char *pPathSave)
|
|||
|
||||
CMapItemInfo *pInfo = (CMapItemInfo *)Map.FindItem(MAPITEMTYPE_INFO, 0);
|
||||
|
||||
dbg_msg("map_extract", "author: %s", (char *)Map.GetData(pInfo->m_Author));
|
||||
dbg_msg("map_extract", "version: %s", (char *)Map.GetData(pInfo->m_MapVersion));
|
||||
dbg_msg("map_extract", "credits: %s", (char *)Map.GetData(pInfo->m_Credits));
|
||||
dbg_msg("map_extract", "license: %s", (char *)Map.GetData(pInfo->m_License));
|
||||
if(pInfo)
|
||||
{
|
||||
dbg_msg("map_extract", "author: %s", (char *)Map.GetData(pInfo->m_Author));
|
||||
dbg_msg("map_extract", "version: %s", (char *)Map.GetData(pInfo->m_MapVersion));
|
||||
dbg_msg("map_extract", "credits: %s", (char *)Map.GetData(pInfo->m_Credits));
|
||||
dbg_msg("map_extract", "license: %s", (char *)Map.GetData(pInfo->m_License));
|
||||
}
|
||||
|
||||
int Start, Num;
|
||||
|
||||
|
|
Loading…
Reference in a new issue