Fix nasty cheat handling bug.

This commit is contained in:
Themaister 2011-04-29 12:36:28 +02:00
parent d679f8b24f
commit 23db525296
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ cheat_manager_t* cheat_manager_new(const char *path)
xmlParserCtxtPtr ctx = NULL;
xmlDocPtr doc = NULL;
cheat_manager_t *handle = calloc(1, sizeof(handle));
cheat_manager_t *handle = calloc(1, sizeof(struct cheat_manager));
if (!handle)
return NULL;