SAGA2: Fix _nameList cleanup

This commit is contained in:
a/ 2021-08-21 01:14:07 +09:00
parent 88548d38d3
commit 89b5a59ed0

View File

@ -2700,10 +2700,10 @@ void cleanupPrototypes(void) {
for (uint i = 0; i < nameListCount; ++i) {
if (g_vm->_nameList[i])
delete[] g_vm->_nameList[i];
g_vm->_nameList.clear();
}
g_vm->_nameList.clear();
for (uint i = 0; i < g_vm->_actorProtos.size(); ++i) {
if (g_vm->_actorProtos[i])
delete g_vm->_actorProtos[i];