summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-10-23 01:57:56 -0400
committer AJR <ajrhacker@users.noreply.github.com>2021-10-23 01:58:01 -0400
commitf6ae5a65c6eeaff53817add3b0b11c1582c14c57 (patch)
tree442a5678df20f453b676fa3fd992f4e7a99ae929 /src/mame
parent526720dbd674b9c6ad172c91f6eebe25cab04344 (diff)
rgum.cpp: Fix clang error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/rgum.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/rgum.cpp b/src/mame/drivers/rgum.cpp
index eb93f600e25..7a1adea5261 100644
--- a/src/mame/drivers/rgum.cpp
+++ b/src/mame/drivers/rgum.cpp
@@ -314,7 +314,7 @@ void rgum_state::rgum(machine_config &config)
ay8910_device &aysnd(AY8910(config, "aysnd", 24_MHz_XTAL / 16));
aysnd.add_route(ALL_OUTPUTS, "mono", 0.50); // guessed to use the same xtal as the crtc
aysnd.port_a_read_callback().set([this](){ return machine().rand() & 0x01; }); // TODO: hack! Otherwise it flashes 'RAM ERROR 0', then black screen
- aysnd.port_b_read_callback().set([this](){ return 0x00; }); // 'micro palline err.' (microballs err.) if bit 0 is set
+ aysnd.port_b_read_callback().set_constant(0x00); // 'micro palline err.' (microballs err.) if bit 0 is set
UPD7759(config, "upd").add_route(ALL_OUTPUTS, "mono", 0.50);
}