Fixing a duplicate addition exception that can occur if you launch a sim twice on the same grid.
parent
1b7f74bc7e
commit
982421e285
|
@ -30,8 +30,15 @@ namespace OpenGrid.Framework.Data.DB4o
|
|||
/// <param name="row">The profile to add</param>
|
||||
/// <returns>Successful?</returns>
|
||||
public bool AddRow(SimProfileData row)
|
||||
{
|
||||
if (profiles.ContainsKey(row.UUID))
|
||||
{
|
||||
profiles[row.UUID] = row;
|
||||
}
|
||||
else
|
||||
{
|
||||
profiles.Add(row.UUID, row);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue