Don't use std::auto_ptr

Ever.
alternate-lights
Nicolas Hake 2015-02-22 16:58:18 +01:00
parent 75c2b8e61c
commit 32ecf51029
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ void C4FoWLightSection::CompileFunc(StdCompiler *pComp)
C4FoWBeam *last_beam = NULL;
for (int32_t i = 0; i < beam_count; ++i)
{
std::auto_ptr<C4FoWBeam> beam(new C4FoWBeam(0, 0, 0, 0));
std::unique_ptr<C4FoWBeam> beam(new C4FoWBeam(0, 0, 0, 0));
pComp->Value(mkNamingAdapt(*beam, "Beam"));
C4FoWBeam *new_beam = beam.release();
if (!last_beam)