Make character load if exists in sim.js

This commit is contained in:
Eric Fredricksen
2011-12-02 14:36:17 -08:00
parent 23fb0b4ba5
commit ead5a61dc7
2 changed files with 17 additions and 13 deletions
+2 -2
View File
@@ -996,7 +996,7 @@ function pause(msec) {
function quit() {
$(window).unbind('unload');
SaveGame(function () { window.location = "roster.html"; });
SaveGame(function () { window.location.href = "roster.html"; });
}
@@ -1037,7 +1037,7 @@ function SaveGame(callback) {
function LoadGame(sheet) {
if (!sheet) {
alert("Error loading game");
window.location = "roster.html";
window.location.href = "roster.html";
return;
}