mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
If NPCModule.CreateNPC() fails to create the required ScenePresence (which should in theory never happen), don't add the NPC to the npc list but return UUID.Zero instead.
This commit is contained in:
@@ -58,7 +58,7 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||
/// </param>
|
||||
/// <param name="scene"></param>
|
||||
/// <param name="appearance">The avatar appearance to use for the new NPC.</param>
|
||||
/// <returns>The UUID of the ScenePresence created.</returns>
|
||||
/// <returns>The UUID of the ScenePresence created. UUID.Zero if there was a failure.</returns>
|
||||
UUID CreateNPC(
|
||||
string firstname,
|
||||
string lastname,
|
||||
|
||||
Reference in New Issue
Block a user