diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-02-15 15:37:04 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-02-15 16:34:16 -0500 |
commit | 0ae8564b3cd63fba47e7581f92e25a1964cd2fe4 (patch) | |
tree | 0afa47cafa6644e09b5204a64ad05ae907ada4b6 | |
parent | 94b22db5c8c835c54790b32d0549b3cb975b8037 (diff) | |
download | roux-0ae8564b3cd63fba47e7581f92e25a1964cd2fe4.tar.gz |
initialize class correctly in pmgen()
-rw-r--r-- | lisc/rega.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisc/rega.c b/lisc/rega.c index a36609e..47c446d 100644 --- a/lisc/rega.c +++ b/lisc/rega.c @@ -230,7 +230,7 @@ pmrec(enum PMStat *status, int i, int *k) static void pmgen() { - int i, w; + int i, k; enum PMStat *status; status = alloc(npm * sizeof status[0]); @@ -238,8 +238,8 @@ pmgen() curi = insb; for (i=0; i<npm; i++) if (status[i] == ToMove) { - w = 0; - pmrec(status, i, &w); + k = pm[i].cls; + pmrec(status, i, &k); } } |