In a MOD that overrides a bandit's hideout to a neutral town, my character is attacked by the neutral forces when he passes through the town's gate.This is almost certain to happen if there is no save load between before and after the override.
Once it occurs, a save load does not cure it.