I find that very odd ... I change dead leaders/civs all the time in my mod and have never run in to that.
The function getName in CvPlayer does:
Code:if (isEmpty(gDLL->getPlayerName(getID(), uiForm)) || (GC.getGameINLINE().isMPOption(MPOPTION_ANONYMOUS) && isAlive())) { return GC.getLeaderHeadInfo([B]getLeaderType()[/B]).getDescription(uiForm); } else { return gDLL->getPlayerName(getID(), uiForm); }
So, as long as you've properly changed the leader type it shouldn't be a problem. To do this you would make calls like:
Code:GC.getInitCore().setLeader(eNewPlayer, eLeader); GC.getInitCore().setCiv(eNewPlayer, eCiv); GC.getInitCore().setColor(eNewPlayer, eColor);
If you want some source code as a reference, check out my mod ... specifically CvPlayer::changeLeader, CvPlayer::changeCiv and CvGame::addPlayerNoTurn
Maybe many of these things might behave differently on save/reload?
I'll see if some tweaks fix the problem.