summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-25 17:38:50 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-25 17:38:50 (EDT)
commit07b748a79b811b74ae996fea3d279b7ccf901622 (patch)
tree5a3a01d6db6a9fd0cd2bed5ac0f783e9204e0a49 /src
parent13a4cf550a771e314ed874c0ae17163a17fe06f0 (diff)
downloaddodge-balls-07b748a79b811b74ae996fea3d279b7ccf901622.zip
dodge-balls-07b748a79b811b74ae996fea3d279b7ccf901622.tar.gz
dodge-balls-07b748a79b811b74ae996fea3d279b7ccf901622.tar.bz2
db_xml_get_bool_attr(): Fix dest assignment
Diffstat (limited to 'src')
-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);