Skip to content

Commit 5524577

Browse files
committed
Fixed crash on sync logins
1 parent d330f7c commit 5524577

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

StarManager/Forms/SyncLoginForm.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public partial class SyncLoginForm : Form
2121
public SyncLoginForm(MemoryManager mm)
2222
{
2323
InitializeComponent();
24+
this.mm = mm;
2425
}
2526

2627
public string GetNet64Name()

StarManager/MainWindow.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public partial class MainWindow : Form
5555

5656
int layoutOff = 0;
5757

58-
byte[] otherStars = null;
59-
58+
byte[] otherStars = new byte[0x8000];
59+
6060
public MainWindow()
6161
{
6262
InitializeComponent();
@@ -1330,7 +1330,7 @@ private void useEmptyStarsToolStripMenuItem_Click(object sender, EventArgs e)
13301330

13311331
private void clearOtherPlayerScoreToolStripMenuItem_Click(object sender, EventArgs e)
13321332
{
1333-
otherStars = new byte[mm.FileLength];
1333+
otherStars = new byte[0x8000];
13341334
}
13351335

13361336
private void enableClickToWarpToolStripMenuItem_Click(object sender, EventArgs e)

0 commit comments

Comments
 (0)