SCUMM: HE: Delete array instead of object. PVS-Studio V611

This commit is contained in:
sluicebox 2023-10-31 14:20:25 -07:00
parent e810d90a7f
commit 683e7f0aec

View File

@ -341,7 +341,7 @@ int AI::masterControlProgram(const int paramCount, const int32 *params) {
_behavior = OFFENSE_MODE;
if (launchAction != NULL) {
delete launchAction;
delete[] launchAction;
launchAction = NULL;
}
@ -737,7 +737,7 @@ int AI::masterControlProgram(const int paramCount, const int32 *params) {
if (tempLaunchAction != NULL) {
if (launchAction != NULL) {
delete launchAction;
delete[] launchAction;
launchAction = NULL;
}