mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Hotfix for loading game.
This commit is contained in:
parent
92f1fbd825
commit
1c8d909433
@ -278,7 +278,7 @@ void CClient::loadGame( const std::string & fname )
|
||||
else
|
||||
tlog0 << "Server opened savegame properly.\n";
|
||||
|
||||
*serv << ui8(gs->scenarioOps->playerInfos.size()+1); //number of players + neutral
|
||||
*serv << ui32(gs->scenarioOps->playerInfos.size()+1); //number of players + neutral
|
||||
for(std::map<int, PlayerSettings>::iterator it = gs->scenarioOps->playerInfos.begin();
|
||||
it != gs->scenarioOps->playerInfos.end(); ++it)
|
||||
{
|
||||
|
2
global.h
2
global.h
@ -25,7 +25,7 @@ typedef ui16 spelltype;
|
||||
#define THC
|
||||
#endif
|
||||
|
||||
#define NAME_VER ("VCMI 0.83")
|
||||
#define NAME_VER ("VCMI 0.83'")
|
||||
extern std::string NAME; //full name
|
||||
extern std::string NAME_AFFIX; //client / server
|
||||
#define CONSOLE_LOGGING_LEVEL 5
|
||||
|
@ -1370,8 +1370,8 @@ CGameState::~CGameState()
|
||||
delete mx;
|
||||
delete map;
|
||||
delete curB;
|
||||
delete scenarioOps;
|
||||
delete initialOpts;
|
||||
//delete scenarioOps; //TODO: fix for loading ind delete
|
||||
//delete initialOpts;
|
||||
delete applierGs;
|
||||
delete objCaller;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user