Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Game::addPlayerToCache(Player* player)
- {
- if(player == NULL) {
- return false;
- }
- Player* _player = getPlayerFromCacheByID(player->getGUID());
- if(_player != NULL) {
- return false;
- }
- this->getPlayerCache()[player->getGUID()] = player;
- return true;
- }
Add Comment
Please, Sign In to add comment