fix: crash in bot

This commit is contained in:
zkldi
2024-07-13 22:52:26 +01:00
parent 7060728584
commit 69867e9c51
+1 -1
View File
@@ -78,7 +78,7 @@ export function FormatClass(
const gptConfig = GetGamePTConfig(game, playtype);
// @ts-expect-error hacky access
const classInfo: ClassInfo = gptConfig.classes[classSet]?.find((k) => k.id === classValue);
const classInfo: ClassInfo = gptConfig.classes[classSet]?.find?.((k) => k.id === classValue);
if (!classInfo) {
throw new Error(