mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +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);
|
CMapItemInfo *pInfo = (CMapItemInfo *)Map.FindItem(MAPITEMTYPE_INFO, 0);
|
||||||
|
|
||||||
|
if(pInfo)
|
||||||
|
{
|
||||||
dbg_msg("map_extract", "author: %s", (char *)Map.GetData(pInfo->m_Author));
|
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", "version: %s", (char *)Map.GetData(pInfo->m_MapVersion));
|
||||||
dbg_msg("map_extract", "credits: %s", (char *)Map.GetData(pInfo->m_Credits));
|
dbg_msg("map_extract", "credits: %s", (char *)Map.GetData(pInfo->m_Credits));
|
||||||
dbg_msg("map_extract", "license: %s", (char *)Map.GetData(pInfo->m_License));
|
dbg_msg("map_extract", "license: %s", (char *)Map.GetData(pInfo->m_License));
|
||||||
|
}
|
||||||
|
|
||||||
int Start, Num;
|
int Start, Num;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue