1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-24 13:47:46 +00:00

whitespace fixes

This commit is contained in:
Adam 2018-01-04 22:40:48 +11:00
parent 8009bc53bb
commit 275d770c78
2 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@ namespace Scripting {
auto script = scripts[i];
module->scripts.push_back( script );
m_scripts[ script->getType() ][ script->getId() ] = script;
m_scripts[script->getType()][script->getId()] = script;
success = true;
}
@ -59,7 +59,7 @@ namespace Scripting {
{
for( auto& script : info->scripts )
{
m_scripts[ script->getType() ].erase( script->getId() );
m_scripts[script->getType()].erase( script->getId() );
delete script;
}

View file

@ -45,8 +45,8 @@ namespace Scripting {
template< typename T >
T* getScript( ScriptType type, uint32_t scriptId )
{
auto script = m_scripts[ type ].find( scriptId );
if( script == m_scripts[ type ].end() )
auto script = m_scripts[type].find( scriptId );
if( script == m_scripts[type].end() )
return nullptr;
return dynamic_cast< T* >( script->second );