https://github.com/libsdl-org/Maelstrom/commit/9ce2f87c66a1eaac36413554fc45114720b13aa4
From 9ce2f87c66a1eaac36413554fc45114720b13aa4 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 2 Nov 2011 00:38:44 -0400
Subject: [PATCH] Fixed loading text shadow offset
---
screenlib/UIElement.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/screenlib/UIElement.cpp b/screenlib/UIElement.cpp
index ccd0d2a0..d0d9f555 100644
--- a/screenlib/UIElement.cpp
+++ b/screenlib/UIElement.cpp
@@ -145,7 +145,7 @@ UIElement::Load(rapidxml::xml_node<> *node, const UITemplates *templates)
char *x = NULL;
char *y = NULL;
- attr = node->first_attribute("offset", 0, false);
+ attr = child->first_attribute("offset", 0, false);
if (attr) {
x = attr->value();
y = SDL_strchr(x, ',');