Build fix for opt scrypt.
diff --git a/findnonce.c b/findnonce.c
index 17c4189..bbbd56f 100644
--- a/findnonce.c
+++ b/findnonce.c
@@ -235,11 +235,12 @@ static void *postcalc_hash(void *userdata)
if (pcd->res[entry]) {
#ifdef USE_SCRYPT
if (opt_scrypt)
- submit_nonce(thr, work, entry);
+ submit_nonce(thr, pcd->work, entry);
else
#endif
send_nonce(pcd, pcd->res[entry]);
nonces++;
+ }
}
free(pcd);