From b95b97d98ca07bf567e2e38265a50541da42edf3 Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Mon, 15 Aug 2011 08:57:44 +0000 Subject: [PATCH] driver.h: fixed handling of compatible systems for MESS [Fabio Priuli] --- src/emu/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/driver.h b/src/emu/driver.h index 2fc09425888..3516c12476d 100644 --- a/src/emu/driver.h +++ b/src/emu/driver.h @@ -126,7 +126,7 @@ public: static const game_driver &driver(int index) { assert(index >= 0 && index < s_driver_count); return *s_drivers_sorted[index]; } static int clone(int index) { return find(driver(index).parent); } static int non_bios_clone(int index) { int result = find(driver(index).parent); return (result != -1 && (driver(result).flags & GAME_IS_BIOS_ROOT) == 0) ? result : -1; } - static int compatible_with(int index) { int result = clone(index); return (result != -1) ? result : find(driver(index).compatible_with); } + static int compatible_with(int index) { int result = find(driver(index).compatible_with); return (result != -1) ? result : -1; } // any item by driver static int clone(const game_driver &driver) { int index = find(driver); assert(index != -1); return clone(index); }