ZVISION: Fix bug #6768 (unable to save in the prison area)

The save buffer preparation code had a bug, which triggered in the
jail area because its room is 'j'
This commit is contained in:
Filippos Karapetis 2015-01-19 05:09:03 +02:00
parent 3a31e1de96
commit 68b7839d99

View File

@ -607,7 +607,7 @@ void ScriptManager::ChangeLocationReal() {
}
if (_nextLocation.world == 'g' && _nextLocation.room == 'j') {
if (_nextLocation.node == 's' && _nextLocation.view == 'e' && _currentLocation.world != 'g' && _currentLocation.room != 'j') {
if (_nextLocation.node == 's' && _nextLocation.view == 'e' && _currentLocation.world != 'g') {
_engine->getSaveManager()->prepareSaveBuffer();
}
} else {