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>
|
/// <param name="row">The profile to add</param>
|
||||||
/// <returns>Successful?</returns>
|
/// <returns>Successful?</returns>
|
||||||
public bool AddRow(SimProfileData row)
|
public bool AddRow(SimProfileData row)
|
||||||
|
{
|
||||||
|
if (profiles.ContainsKey(row.UUID))
|
||||||
|
{
|
||||||
|
profiles[row.UUID] = row;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
profiles.Add(row.UUID, row);
|
profiles.Add(row.UUID, row);
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue