[Fix] Stupid typo broke saving.
This commit is contained in:
		
							parent
							
								
									a2fd2e866a
								
							
						
					
					
						commit
						c9a79abac8
					
				| @ -1,3 +1,9 @@ | ||||
| /**
 | ||||
|  * @file save.c | ||||
|  * | ||||
|  * @brief Handles saving/loading games. | ||||
|  */ | ||||
| 
 | ||||
| #include <stdio.h> /* remove() */ | ||||
| #include "lephisto.h" | ||||
| #include "log.h" | ||||
| @ -67,11 +73,10 @@ int save_all(void) { | ||||
| 
 | ||||
|   xmlw_start(writer); | ||||
|   xmlw_startElem(writer, "lephisto_save"); | ||||
| 
 | ||||
|   /* Save the version or something.. */ | ||||
|   xmlw_startElem(writer, "version"); | ||||
|   xmlw_elem(writer, "lephisto", "%d.%d.%d", VMAJOR, VMINOR, VREV); | ||||
|   xmlw_elem(writer, "data", ldata_name); | ||||
|   xmlw_elem(writer, "data", ldata_name()); | ||||
|   xmlw_endElem(writer); /* Version. */ | ||||
|    | ||||
|   if(save_data(writer) < 0) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Allanis
						Allanis