[apathy][PATCH] Cast jboolean to bool

This commit is contained in:
DarthArgus
2016-07-25 05:39:29 +00:00
parent be02bf64c3
commit 73d718ba9e
2 changed files with 2 additions and 2 deletions
@@ -330,7 +330,7 @@ void JNICALL ScriptMethodsNewbieTutorialNamespace::newbieTutorialSendStartingLoc
typedef std::pair<std::string, bool> Payload;
typedef MessageQueueGenericValueType<Payload> MessageType;
MessageType * const message = new MessageType (Payload (name, result));
MessageType * const message = new MessageType (Payload (name, (bool)result));
sendMessageToPlayer (*player, message, CM_startingLocationSelectionResult);
}
@@ -407,7 +407,7 @@ jboolean JNICALL ScriptMethodsPlayerAccountNamespace::setCompletedTutorial(JNIEn
const unsigned int stationId = playerObject->getClient()->getStationId();
LOG("CustomerService", ("Setting tutorial bit to %s for stationId %i\n", (value) ? "true" : "false", stationId));
GenericValueTypeMessage< std::pair<unsigned int, bool> > const updateTutorial("LoginToggleCompletedTutorial", std::pair<unsigned int, bool>(stationId, value));
GenericValueTypeMessage< std::pair<unsigned int, bool> > const updateTutorial("LoginToggleCompletedTutorial", std::pair<unsigned int, bool>(stationId, (bool)value));
GameServer::getInstance().sendToCentralServer(updateTutorial);
return true;
}