[Fix] Stupid typo broke saving.

This commit is contained in:
Allanis 2014-05-17 12:18:36 +01:00
parent a2fd2e866a
commit c9a79abac8

View File

@ -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) {