c/c++ error

0

witam próbuje coś dodać i mi wywala takie coś

game.cpp: In member function 'bool Game::playerReceivePing(uint32_t)':
game.cpp:933:34: error: 'player->Player::<anonymous>.Creature::<anonymous>.Thing::isRemoved' cannot be used as a function 

za bardzo nie wiem o co chodzi z tym anonymous
mógłbny ktoś mi to wyjaśnić?

kawałek kodu wygląda tak:

bool Game::playerReceivePing(uint32_t playerId)
{
	Player* player = getPlayerByID(playerId);
	if(!player || player->isRemoved())
		return false;

	player->receivePing();
	return true;
} 
1

isRemoved() nie jest funkcją. Usuń nawiasy.

1 użytkowników online, w tym zalogowanych: 0, gości: 1