summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xml.c b/src/xml.c
index 30298e0..001e777 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -64,10 +64,10 @@ db_xml_get_bool_attr(XML_Parser p, const char **attr, const char *name,
for (; attr[0] != NULL; attr += 2) {
if (strcmp(attr[0], name) == 0) {
if (strcmp(attr[1], "true") == 0) {
- dest = SDL_TRUE;
+ *dest = SDL_TRUE;
return;
} else if (strcmp(attr[1], "false") == 0) {
- dest = SDL_FALSE;
+ *dest = SDL_FALSE;
return;
} else if (req) {
db_warn("Invalid \"%s\" attribute value", name);