fix compile issues

This commit is contained in:
Eduardo Bart 2011-10-26 20:19:41 -02:00
parent c08bbf828b
commit 6c200bd764
3 changed files with 5 additions and 6 deletions

View File

@ -81,7 +81,7 @@ public:
/// Get the app user directory, the place to save files configurations files
std::string getAppUserDir();
std::string generateBacktrace(int maxLevel);
std::string generateBacktrace(int maxLevel = 100);
private:
PlatformListener* m_listener;

View File

@ -868,8 +868,7 @@ std::string Platform::getAppUserDir()
return sdir.str();
}
std::string Platform::generateBacktrace(int maxLevel = 100)
std::string Platform::generateBacktrace(int maxLevel)
{
std::stringstream ss;
std::vector<void*> buffer(maxLevel);

View File

@ -801,7 +801,7 @@ void ProtocolGame::parseOutfitWindow(InputMessage& msg)
void ProtocolGame::parseVipState(InputMessage& msg)
{
uint32 id = msg.getU32();
int id = msg.getU32();
std::string name = msg.getString();
bool online = msg.getU8() != 0;
@ -812,7 +812,7 @@ void ProtocolGame::parseVipState(InputMessage& msg)
void ProtocolGame::parseVipLogin(InputMessage& msg)
{
uint32 id = msg.getU32();
int id = msg.getU32();
g_dispatcher.addEvent([=] {
g_lua.callGlobalField("Game", "onVipStateChange", id, true);
@ -821,7 +821,7 @@ void ProtocolGame::parseVipLogin(InputMessage& msg)
void ProtocolGame::parseVipLogout(InputMessage& msg)
{
uint32 id = msg.getU32();
int id = msg.getU32();
g_dispatcher.addEvent([=] {
g_lua.callGlobalField("Game", "onVipStateChange", id, false);