[9772] Make GCC happy and restore buuild at *unix now really.

Just for note: this still look as not code problem but GCC bug in C++ std. library.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
blueboy 2010-04-21 19:13:11 +04:00 committed by VladimirMangos
parent cea7d42971
commit 17dd848242
2 changed files with 4 additions and 2 deletions

View file

@ -317,7 +317,9 @@ bool ChatHandler::HandleCharacterDeletedRestoreCommand(const char* args)
std::string newCharName;
uint32 newAccount = 0;
std::istringstream(args) >> searchString >> newCharName >> newAccount;
// GCC by some strange reason fail build code without temporary variable
std::istringstream params(args);
params >> searchString >> newCharName >> newAccount;
DeletedInfoList foundList;
if (!GetDeletedCharacterInfoList(foundList, searchString))

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9771"
#define REVISION_NR "9772"
#endif // __REVISION_NR_H__