summaryrefslogtreecommitdiffstats
path: root/src/object/auto/autonest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/auto/autonest.cpp')
-rw-r--r--src/object/auto/autonest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/object/auto/autonest.cpp b/src/object/auto/autonest.cpp
index 99927bd..1cf13d6 100644
--- a/src/object/auto/autonest.cpp
+++ b/src/object/auto/autonest.cpp
@@ -19,7 +19,9 @@
#include "object/auto/autonest.h"
#include "common/iman.h"
+
#include "graphics/engine/terrain.h"
+
#include "script/cmdtoken.h"
#include <stdio.h>
@@ -28,8 +30,7 @@
// Object's constructor.
-CAutoNest::CAutoNest(CInstanceManager* iMan, CObject* object)
- : CAuto(iMan, object)
+ CAutoNest::CAutoNest(CObject* object) : CAuto(object)
{
Init();
}
@@ -178,7 +179,7 @@ void CAutoNest::CreateFret(Math::Vector pos, float angle, ObjectType type)
{
CObject* fret;
- fret = new CObject(m_iMan);
+ fret = new CObject();
if ( !fret->CreateResource(pos, angle, type) )
{
delete fret;