summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar couriersud <couriersud@gmx.org>2019-10-12 21:57:26 +0200
committerGravatarGravatar couriersud <couriersud@gmx.org>2019-10-12 21:57:26 +0200
commit777f93b083003eed370693865167b7816eaa19db (patch) (github)
treea0919d0dc45b1e14ddbce590c25db1c0d2518f01
parent8f83e4392f076a4b800f41116d67631ed9e101d9 (diff)
downloadmame-777f93b083003eed370693865167b7816eaa19db.tar.bz2
mame-777f93b083003eed370693865167b7816eaa19db.zip
netlist: fix issues with 1x1 matrix. [Tafoid]
- fixes gamemachine.cpp, breakout.cpp
-rw-r--r--src/lib/netlist/solver/nld_matrix_solver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/netlist/solver/nld_matrix_solver.cpp b/src/lib/netlist/solver/nld_matrix_solver.cpp
index 6c565615386..88823811858 100644
--- a/src/lib/netlist/solver/nld_matrix_solver.cpp
+++ b/src/lib/netlist/solver/nld_matrix_solver.cpp
@@ -181,7 +181,7 @@ namespace devices
break;
case matrix_sort_type_e::PREFER_IDENTITY_TOP_LEFT:
{
- for (std::size_t k = 0; k < iN - 2; k++)
+ for (std::size_t k = 0; k < iN - 1; k++)
{
auto pk = get_left_right_of_diag(k,k);
for (std::size_t i = k+1; i < iN; i++)