stratgame

diff level/src/level.cc @ 1:55a43e27339a

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 22 May 2012 05:02:00 +0300
parents 86b53f76899f
children 369b51c9e4a8
line diff
     1.1 --- a/level/src/level.cc	Mon May 21 19:07:40 2012 +0300
     1.2 +++ b/level/src/level.cc	Tue May 22 05:02:00 2012 +0300
     1.3 @@ -12,13 +12,14 @@
     1.4  
     1.5  bool Level::load(const char *fname)
     1.6  {
     1.7 -	if(!xml.loadFile(fname)) {
     1.8 +	if(!xml.LoadFile(fname)) {
     1.9  		fprintf(stderr, "failed to load level: %s\n", fname);
    1.10  		return false;
    1.11  	}
    1.12  
    1.13 -	if(strcmp(xml.RootElement().Name(), "level") != 0) {
    1.14 +	if(strcmp(xml.RootElement()->Name(), "level") != 0) {
    1.15  		fprintf(stderr, "invalid level file: %s\n", fname);
    1.16  		return false;
    1.17  	}
    1.18 +	return true;
    1.19  }