fixed uninitialized resources
This commit is contained in:
parent
0b2aaf0799
commit
b641019e03
2 changed files with 3 additions and 0 deletions
1
COPYING
1
COPYING
|
@ -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
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue