mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-24 21:57:44 +00:00
whitespace fixes
This commit is contained in:
parent
8009bc53bb
commit
275d770c78
2 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,7 @@ namespace Scripting {
|
||||||
auto script = scripts[i];
|
auto script = scripts[i];
|
||||||
module->scripts.push_back( script );
|
module->scripts.push_back( script );
|
||||||
|
|
||||||
m_scripts[ script->getType() ][ script->getId() ] = script;
|
m_scripts[script->getType()][script->getId()] = script;
|
||||||
|
|
||||||
success = true;
|
success = true;
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ namespace Scripting {
|
||||||
{
|
{
|
||||||
for( auto& script : info->scripts )
|
for( auto& script : info->scripts )
|
||||||
{
|
{
|
||||||
m_scripts[ script->getType() ].erase( script->getId() );
|
m_scripts[script->getType()].erase( script->getId() );
|
||||||
|
|
||||||
delete script;
|
delete script;
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,8 +45,8 @@ namespace Scripting {
|
||||||
template< typename T >
|
template< typename T >
|
||||||
T* getScript( ScriptType type, uint32_t scriptId )
|
T* getScript( ScriptType type, uint32_t scriptId )
|
||||||
{
|
{
|
||||||
auto script = m_scripts[ type ].find( scriptId );
|
auto script = m_scripts[type].find( scriptId );
|
||||||
if( script == m_scripts[ type ].end() )
|
if( script == m_scripts[type].end() )
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
return dynamic_cast< T* >( script->second );
|
return dynamic_cast< T* >( script->second );
|
||||||
|
|
Loading…
Add table
Reference in a new issue