Corrected script command logmes (#4103)
* Fixed a potential crash with attempting to log a message with a floating NPC. Thanks to @Akkarinage!
This commit is contained in:
parent
a3bd4c3964
commit
c264d3e94a
@ -2976,6 +2976,9 @@ void map_removemobs(int16 m)
|
||||
*------------------------------------------*/
|
||||
const char* map_mapid2mapname(int m)
|
||||
{
|
||||
if (m == -1)
|
||||
return "Floating";
|
||||
|
||||
struct map_data *mapdata = map_getmapdata(m);
|
||||
|
||||
if (mapdata->instance_id) { // Instance map check
|
||||
|
Loading…
x
Reference in New Issue
Block a user