change dynamic_cast -> virtual_cast

develop
Myk Taylor 2023-06-01 10:53:08 -07:00
parent af4524c264
commit 5c914280c3
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 1 deletions

@ -357,7 +357,7 @@ bool Buildings::setOwner(df::building_civzonest *bld, df::unit *unit)
if (bld->assigned_unit == unit) if (bld->assigned_unit == unit)
return true; return true;
df::building * pbld = dynamic_cast<df::building*>(bld); df::building * pbld = virtual_cast<df::building>(bld);
if (bld->assigned_unit) if (bld->assigned_unit)
{ {