         if player == nil || !needToSave { return }
         if player!.isDead { return }
 
-        if savePath.characters.count == 0 {
+        if savePath.count == 0 {
             // We have no save path for some reason, so force a Save As...
             savePlayerAs(self)
             return

			player!.pack.append(dict)
			dict = [ "name" : "Sword", "icon" : NSNumber.init(value: 1) ]
			player!.pack.append(dict)
            	dict = [ "name" : "Leather armour", "icon" : NSNumber.init(value: 2) ]
			player!.pack.append(dict)
        }



        let alert: NSAlert = NSAlert.init()
        alert.messageText = title
        if message.count > 0 { alert.informativeText = message }

        alert.beginSheetModal(for: window, completionHandler: { (modalResponse) in
            if update { self.updateStats() }
