From 07b748a79b811b74ae996fea3d279b7ccf901622 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 25 Mar 2021 17:38:50 -0400 Subject: db_xml_get_bool_attr(): Fix dest assignment --- 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); -- cgit v0.9.1