mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 10:21:31 +00:00
SCUMM: HE: Delete array instead of object. PVS-Studio V611
This commit is contained in:
parent
e810d90a7f
commit
683e7f0aec
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user