rulegen:: clear codes on neg rule mismatch

This commit is contained in:
Zeno Rogue 2022-08-17 17:33:52 +02:00
parent ecee5b7f21
commit 47d2b5b27b
1 changed files with 2 additions and 0 deletions

View File

@ -1526,6 +1526,8 @@ EX void rules_iteration_for(twalker& cw) {
if(r[z] == cids[z]) continue;
if(r[z] < 0 || cids[z] < 0) {
debuglist = { cwmain, ts.giver };
cwmain.at->code = MYSTERY_LARGE;
ts.giver.at->code = MYSTERY_LARGE;
throw rulegen_retry("neg rule mismatch");
}