mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 06:27:45 +00:00
Additional assert in framwork
This commit is contained in:
parent
9a93c25245
commit
225a064e55
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ namespace Core
|
||||||
template< typename T >
|
template< typename T >
|
||||||
void set( boost::shared_ptr< T > value )
|
void set( boost::shared_ptr< T > value )
|
||||||
{
|
{
|
||||||
|
assert( value ); // why would anyone store nullptrs....
|
||||||
ObjectMap[typeid( T )] = value;
|
ObjectMap[typeid( T )] = value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue