1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00

Remove unwanted memory leak in script

This commit is contained in:
Filip Gawin 2018-07-31 22:05:58 +02:00 committed by Daniel Evans
parent 844d1f89b3
commit 24b47a53f3

View File

@ -5234,7 +5234,7 @@ void opcode_01d3(const ScriptArguments& args, const ScriptCharacter character, c
RW_UNUSED(args);
character->controller->skipActivity();
character->controller->setNextActivity(
std::make_unique<Activities::ExitVehicle>());(new Activities::ExitVehicle);
std::make_unique<Activities::ExitVehicle>());
}
/**