fixed uninitialized resources

This commit is contained in:
laochailan 2011-07-04 11:39:32 +02:00
parent 0b2aaf0799
commit b641019e03
2 changed files with 3 additions and 0 deletions

View file

@ -1,4 +1,5 @@
Copyright (c) 2011 Lukas Weber <laochailan@web.de>
This is an unofficial fan-made game based on the original Touhou series by ZUN.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in

View file

@ -48,6 +48,8 @@ void recurse_dir(char *path) {
void load_resources() {
printf("load_resources():\n");
memset(&resources, 0, sizeof(Resources));
char *path = malloc(strlen(get_prefix())+7);
if(!(resources.state & RS_GfxLoaded)) {