diff --git a/src/services/characterTeleportService.ts b/src/services/characterTeleportService.ts index cf1d0c9..646a6e7 100644 --- a/src/services/characterTeleportService.ts +++ b/src/services/characterTeleportService.ts @@ -25,8 +25,8 @@ class CharacterTeleportService { const { socket, targetMap, mapCharacter } = await this.validateTeleportRequest(characterId, options) if (!socket || !targetMap || !mapCharacter) return false - const currentMapId = mapCharacter.character.map?.id - const currentMap = MapManager.getMapById(currentMapId!) + const currentMapId = mapCharacter.character.map.id + const currentMap = MapManager.getMapById(currentMapId) const io = SocketManager.getIO() // Update character position and map