From 12d9b7c0951d15f070d214fe2ace84db165e22d9 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Thu, 4 May 2023 15:33:05 +0100 Subject: [PATCH] Bug fix * Fixed cho character function lacking explicit store reference for sprite_pos dict --- game/scripts/characters/cho/common.rpy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/scripts/characters/cho/common.rpy b/game/scripts/characters/cho/common.rpy index 23570703..70a433ee 100644 --- a/game/scripts/characters/cho/common.rpy +++ b/game/scripts/characters/cho/common.rpy @@ -47,8 +47,8 @@ init python in character: layer = renpy.store.cho.layer if xpos is not None or ypos is not None: - xpos = renpy.store.cho.pos[0] if xpos is None else sprite_pos.get("x").get(xpos, xpos) - ypos = renpy.store.cho.pos[1] if ypos is None else sprite_pos.get("y").get(ypos, ypos) + xpos = renpy.store.cho.pos[0] if xpos is None else renpy.store.sprite_pos.get("x").get(xpos, xpos) + ypos = renpy.store.cho.pos[1] if ypos is None else renpy.store.sprite_pos.get("y").get(ypos, ypos) renpy.store.cho.pos = (xpos, ypos) redraw = True