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