1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 23:27:45 +00:00

use dynamic_cast instead of static_cast in script getter

This commit is contained in:
Adam 2018-01-04 22:24:13 +11:00
parent 19dcbd347d
commit 8009bc53bb

View file

@ -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 );
}
};