Changed quid to int. A counter attached to the map returns the current uniqueID and increments when Map::getNextId() is called.