mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 07:37:45 +00:00
use dynamic_cast instead of static_cast in script getter
This commit is contained in:
parent
19dcbd347d
commit
8009bc53bb
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ namespace Scripting {
|
|||
if( script == m_scripts[ type ].end() )
|
||||
return nullptr;
|
||||
|
||||
return static_cast< T* >( script->second );
|
||||
return dynamic_cast< T* >( script->second );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue