Reset: allow re-init of Nasal Ghosts.
After discussion with Thomas, reset needs the scenario this assert was designed to guard against, so removing it for now.
This commit is contained in:
parent
10375086ed
commit
7bbec8dbcb
@ -291,8 +291,6 @@ namespace nasal
|
|||||||
*/
|
*/
|
||||||
static Ghost& init(const std::string& name)
|
static Ghost& init(const std::string& name)
|
||||||
{
|
{
|
||||||
assert( !getSingletonPtr() );
|
|
||||||
|
|
||||||
getSingletonHolder().reset( new Ghost(name) );
|
getSingletonHolder().reset( new Ghost(name) );
|
||||||
return *getSingletonPtr();
|
return *getSingletonPtr();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user