(5d73de170) Fixed RefreshSavedSub removing an extra sub from the list (causing an index out of range exception if refreshing a sub at the end of the list)
This commit is contained in:
@@ -1111,7 +1111,6 @@ namespace Barotrauma
|
||||
if (Path.GetFullPath(savedSubmarines[i].filePath) == fullPath)
|
||||
{
|
||||
savedSubmarines[i].Dispose();
|
||||
savedSubmarines.RemoveAt(i);
|
||||
}
|
||||
}
|
||||
savedSubmarines.Add(new Submarine(filePath));
|
||||
|
||||
Reference in New Issue
Block a user