Skip to content

Commit 73e71b7

Browse files
Fix enum default in config parsing
1 parent d049371 commit 73e71b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rlbot/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
def __parse_enum(table: dict, key: str, enum: Any, default: int = 0) -> Any:
1111
if key not in table:
12-
return enum(0)
12+
return enum(default)
1313
try:
1414
for i in range(100000):
1515
if str(enum(i)).split('.')[-1].lower() == table[key].lower():

0 commit comments

Comments
 (0)