GLK: MAGNETIC: Fix compiler warning

Fixed a compiler warning caused by incorrect subscripting of
a 2d array.
This commit is contained in:
Kaloyan Chehlarski 2023-10-28 13:31:26 +03:00
parent fde77a362f
commit 443043c6ba

View File

@ -73,7 +73,7 @@ Magnetic::Magnetic(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(s
Common::fill(&dreg[0], &dreg[8], 0);
Common::fill(&areg[0], &areg[8], 0);
Common::fill(&tmparg[0], &tmparg[4], 0);
Common::fill(&undo_regs[0][0], &undo_regs[2][0], 0);
Common::fill(&undo_regs[0][0], &undo_regs[1][18], 0);
undo[0] = undo[1] = nullptr;
undo_stat[0] = undo_stat[1] = 0;
Common::fill(&buffer[0], &buffer[80], 0);