Comment 6 for bug 1199957

Revision history for this message
cghislai (charlyghislain) wrote :

Replacing with

Soldier * worst_guy = find_least_suited_soldier();
 if (worst_guy == NULL) {
  log("MilitarySite::swapSoldiers: error: Could not find least suited soldier");
  return false;
 }
 int32_t wg_level = worst_guy->get_level(atrTotal);

does indeed produce the error output and prevent crash.