Skip to content

Commit 58e77ad

Browse files
committed
-Backport (r2061): release failed to copy from right revision
1 parent 1fedaeb commit 58e77ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/gui.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,7 @@ FactoryResult GUI_DisplayFactoryWindow(bool isConstructionYard, bool isStarPort,
28002800
uint16 oldScreenID = GUI_Screen_SetActive(0);
28012801
uint8 backup[3];
28022802

2803-
memcpy(g_palette1 + 765, backup, 3);
2803+
memcpy(backup, g_palette1 + 765, 3);
28042804

28052805
g_global->factoryWindowConstructionYard = isConstructionYard;
28062806
g_factoryWindowStarport = isStarPort;
@@ -2832,7 +2832,7 @@ FactoryResult GUI_DisplayFactoryWindow(bool isConstructionYard, bool isStarPort,
28322832

28332833
GUI_FactoryWindow_B495_0F30();
28342834

2835-
memcpy(backup, g_palette1 + 765, 3);
2835+
memcpy(g_palette1 + 765, backup, 3);
28362836

28372837
GFX_SetPalette(g_palette1);
28382838

0 commit comments

Comments
 (0)