Skip to content

Commit e48af97

Browse files
fix an issue in parser
1 parent 94a1476 commit e48af97

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/features/game/parser/LocationParser.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ export default class LocationParser {
6060
});
6161
break;
6262
case 'back':
63-
location.back = configValues;
63+
configValues.forEach(backLocationId => {
64+
Parser.validator.assertEntityType(GameEntityType.locations, backLocationId);
65+
location.back = backLocationId;
66+
});
6467
break;
6568
case 'talkTopics': {
6669
const talkTopics = configValues;

0 commit comments

Comments
 (0)