Skip to content

Commit 285ee6f

Browse files
author
Kurt Dekker
committed
UnitySAM: change order of lifetime for buf
1 parent 1c0d684 commit 285ee6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

UnitySAM/Assets/SAMCSourceCode/src/render_c.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,6 @@ static int abs( int x)
330330
//void Code47574()
331331
public static void Render()
332332
{
333-
buf = new Buffer();
334-
335333
int phase1 = 0; //mem43
336334
int phase2 = 0;
337335
int phase3 = 0;

UnitySAM/Assets/SAMCSourceCode/src/sam_c.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ static void PrepareOutput()
166166
X = 0;
167167
Y = 0;
168168

169+
buf = new Buffer();
170+
169171
//pos48551:
170172
while(true)
171173
{

0 commit comments

Comments
 (0)