Yanfly's Party Manager

I'm using Yanfly's party manager plugin in my project. My game uses a three member party system, but by default Yanfly's plugin allows you to exit with only one active member in the party. Is there a way to force you to always have three members before exiting the screen?
Anyone have any ideas?

Alby, please do not bump your topic unless it has been 24 hours later since your last post. You can review our forum rules here. Thank you.

Open the plugin in a text editor and find this function:
Code:
Window_PartyMenuCommand.prototype.isCancelEnabled = function() {
    if ($gameParty.aliveMembers().length <= 0) return false;
    if ($gameParty.battleMembers().length <= 0) return false;
    for (var i = 0; i < $gameParty._actors.length; ++i) {
      var actorId = $gameParty._actors[i];
      if (this.refuseCancel(actorId)) return false;
    }
    return true
};
The line that says
Code:
    if ($gameParty.battleMembers().length <= 0) return false;
change it to
Code:
    if ($gameParty.battleMembers().length < 3) return false;

You can change the 3 to another number if you like as well. Though make sure that the number does not exceed the maximum number of battlers the party can have or you'll never be able to exit the formation scene.
Thanks for coming through yet again, Silva~

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-party-manager.108474/