use dynamic cast instead of c-style cast when casting from base type to derived class
This commit is contained in:
@ -186,7 +186,7 @@ void Domain::init()
|
||||
for (const auto &fix : fixes)
|
||||
if (utils::strmatch(fix->style,"^deform")) {
|
||||
deform_flag = 1;
|
||||
if (((FixDeform *) fix)->remapflag == Domain::V_REMAP) {
|
||||
if ((dynamic_cast<FixDeform *>( fix))->remapflag == Domain::V_REMAP) {
|
||||
deform_vremap = 1;
|
||||
deform_groupbit = fix->groupbit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user