diff options
author | Eugene Sandulenko | 2004-08-01 07:41:15 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-08-01 07:41:15 +0000 |
commit | 890d66708732ffd5b8d952c7b5831745bd0418d5 (patch) | |
tree | f9796327acce9f410f08d830b9fbd2a75f8dfac4 /saga | |
parent | 2ed2770eed6c9b60966d31f1c8151c283b881fd9 (diff) | |
download | scummvm-rg350-890d66708732ffd5b8d952c7b5831745bd0418d5.tar.gz scummvm-rg350-890d66708732ffd5b8d952c7b5831745bd0418d5.tar.bz2 scummvm-rg350-890d66708732ffd5b8d952c7b5831745bd0418d5.zip |
oops
svn-id: r14412
Diffstat (limited to 'saga')
-rw-r--r-- | saga/actionmap.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/saga/actionmap.cpp b/saga/actionmap.cpp index b80c898d80..3410db91cd 100644 --- a/saga/actionmap.cpp +++ b/saga/actionmap.cpp @@ -123,8 +123,9 @@ int ActionMap::freeMap(void) { for (i = 0; i < _n_exits; i++) { exmap_entry = &_exits_tbl[i]; - if (exmap_entry->pt_tbl) - free(exmap_entry->pt_tbl); + if (_exits_tbl[i]) + if (exmap_entry->pt_tbl) + free(exmap_entry->pt_tbl); } if (_exits_tbl) |