Fix error when loading legacy chunk

This commit is contained in:
Shadowfacts 2016-10-04 12:26:05 -04:00
parent 4ce5e72ccb
commit e460c9ca71
No known key found for this signature in database
GPG Key ID: A7A3BA2CFC135F32
1 changed files with 5 additions and 1 deletions

View File

@ -530,7 +530,11 @@ function saveCursor(obj) {
} }
function loadElapsedTime(obj) { function loadElapsedTime(obj) {
elapsedTime = obj.elapsedTime; if (obj && obj.elapsedTime) {
elapsedTime = obj.elapsedTime;
} else {
elapsed = 0;
}
} }
function saveElapsedTime(obj) { function saveElapsedTime(obj) {