note script filename fix error message for SpawnGroupByID
This commit is contained in:
parent
ce39473fb9
commit
a597a993c2
@ -10826,7 +10826,7 @@ int EQ2Emu_lua_SpawnGroupByID(lua_State* state) {
|
|||||||
for (itr = locs->begin(); itr != locs->end(); itr++) {
|
for (itr = locs->begin(); itr != locs->end(); itr++) {
|
||||||
SpawnLocation* location = zone->GetSpawnLocation(itr->second);
|
SpawnLocation* location = zone->GetSpawnLocation(itr->second);
|
||||||
if (!location) {
|
if (!location) {
|
||||||
lua_interface->LogError("LUA SpawnByLocationID command error: no location found for the given ID (%u)", itr->second);
|
lua_interface->LogError("%s: LUA SpawnGroupByID command error: no location found for the given ID (%u)", lua_interface->GetScriptName(state), itr->second);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -10886,7 +10886,7 @@ int EQ2Emu_lua_SpawnGroupByID(lua_State* state) {
|
|||||||
group.push_back(spawn);
|
group.push_back(spawn);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LogWrite(ZONE__ERROR, 0, "Zone", "Error adding spawn by group id to zone %s with location id %u.", zone->GetZoneName(), group_id);
|
LogWrite(ZONE__ERROR, 0, "Zone", "%s: Error adding spawn by group id to zone %s with location id %u.", lua_interface->GetScriptName(state), zone->GetZoneName(), group_id);
|
||||||
safe_delete(spawn);
|
safe_delete(spawn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user