mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Disabled RTTI and removed dynamic_cast
This commit is contained in:
@ -137,10 +137,11 @@ static int Show(lua_State* L)
|
||||
static int SetText(lua_State* L)
|
||||
{
|
||||
CMeter* self = GetSelf(L);
|
||||
if (CMeterString* stringMeter = dynamic_cast<CMeterString*>(self))
|
||||
if (self->GetTypeID() == TypeID<CMeterString>())
|
||||
{
|
||||
CMeterString* string = (CMeterString*)self;
|
||||
std::wstring str = LuaManager::ToWide(L, 2);
|
||||
stringMeter->SetText(str.c_str());
|
||||
string->SetText(str.c_str());
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user