chore: V11 compat

This commit is contained in:
Matthieu CAILLEAUX
2023-06-26 12:43:35 +02:00
parent fc49c91024
commit 3451c86b36
2 changed files with 3 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ async function generate(actor: Actor & any, docBuilder: AbstractBuilder) {
let actorImageData: string | null = null;
if (actorImage != null) {
const texture = await loadTexture(actorImage);
actorImageData = ImageHelper.textureToImage(texture);
actorImageData = await ImageHelper.textureToImage(texture);
}
const currentCareer: Item & any = actor.currentCareer;
const careerData: ItemData & any = currentCareer;