summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-28 07:46:20 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-28 07:46:20 +0100
commit4fd963d2c40d352951b64e3ec2f4b188c6f50917 (patch)
tree918a432b01378e6e8efa588894c774747e6a3a4e /logic
parentfe8cca928b40d696a7c586c7c320226390be4689 (diff)
logic/tracker: fix typo out-of-bound access
Diffstat (limited to 'logic')
-rw-r--r--logic/tracker.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index 332828a9..f5b1bdc4 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -43,6 +43,7 @@ Tracker::Tracker(Mappings& m, SelectedLibraries& libs, TrackLogger& logger) :
Tracker::~Tracker()
{
+ qDebug() << "dtor";
set(f_should_quit, true);
wait();
}
@@ -111,7 +112,7 @@ static bool is_nan(const dmat<u,w>& r)
{
for (int i = 0; i < u; i++)
for (int j = 0; j < w; j++)
- if (nanp(r(u, w)))
+ if (nanp(r(i, j)))
return true;
return false;