summaryrefslogtreecommitdiff
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-16 13:42:04 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-16 13:42:04 +0300
commit32ab01cd32adbe7a2ab6fb1cad8501547ff123ee (patch)
tree6ff156885237ff19285c8d13cc046975bf2e4386 /src/control
parent7ea77d8da41c05ea30716c1663f2b1f852574f1f (diff)
consistency fix
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script6.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/control/Script6.cpp b/src/control/Script6.cpp
index c9828758..4d7121f2 100644
--- a/src/control/Script6.cpp
+++ b/src/control/Script6.cpp
@@ -50,8 +50,7 @@ bool CRunningScript::ThisIsAValidRandomCop(uint32 mi, int cop, int swat, int fbi
case MI_SWAT: if (swat) return true; break;
case MI_FBI: if (fbi) return true; break;
case MI_ARMY: if (army) return true; break;
- default:
- return miami && (mi >= MI_VICE1 && mi <= MI_VICE8);
+ default: if (mi >= MI_VICE1 && mi <= MI_VICE8 && miami) return true; break;
}
return false;
}