From b536f0ba20149b7beca73c9e299b935c9954c400 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 24 Sep 2022 14:29:45 -0500 Subject: [PATCH] MSVC fix --- src/engine/platform/snes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/platform/snes.cpp b/src/engine/platform/snes.cpp index ca722a419..c2118ce50 100644 --- a/src/engine/platform/snes.cpp +++ b/src/engine/platform/snes.cpp @@ -24,7 +24,7 @@ #define CHIP_FREQBASE 131072 -#define rWrite(a,v) if (!skipRegisterWrites) {writes.emplace(a,v); if (dumpWrites) {addWrite(a,v);} } +#define rWrite(a,v) if (!skipRegisterWrites) {writes.push_back(QueuedWrite(a,v)); if (dumpWrites) {addWrite(a,v);} } #define chWrite(c,a,v) {rWrite((a)+(c)*16,v)} #define sampleTableAddr(c) (sampleTableBase+(c)*4) #define waveTableAddr(c) (sampleTableBase+8*4+(c)*9*16)