Browse Source

fixed uninitialized resources

pull/4/merge
laochailan 10 years ago
parent
commit
b641019e03
  1. 1
      COPYING
  2. 2
      src/resource/resource.c

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

2
src/resource/resource.c

@ -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…
Cancel
Save