X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e18c4734744e56b738ca2918dffe071f95f4c14b..b0b15b7ced28b3c6ddfcd4b0a7e46ee6432a243c:/disobedience/misc.c?ds=sidebyside diff --git a/disobedience/misc.c b/disobedience/misc.c index 1e5ee22..da0db60 100644 --- a/disobedience/misc.c +++ b/disobedience/misc.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder - * Copyright (C) 2006, 2007 Richard Kettlewell + * Copyright (C) 2006-2008 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -109,7 +109,7 @@ GdkPixbuf *find_image(const char *name) { int n; if(!(pb = (GdkPixbuf *)cache_get(&image_cache_type, name))) { - if((n = TABLE_FIND(images, struct image, name, name)) >= 0) { + if((n = TABLE_FIND(images, name, name)) >= 0) { /* Use the built-in copy */ if(!(pb = gdk_pixbuf_new_from_inline(-1, images[n].data, FALSE, &err))) { error(0, "%s", err->message);