mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-24 13:47:46 +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];
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue