1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Fixed missed AiPackageTypeId::Wander 'fix'

This commit is contained in:
Bret Curtis 2020-06-17 09:58:18 +02:00 committed by GitHub
parent 2d23dad2bc
commit 1db58575c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -415,7 +415,7 @@ DetourNavigator::AreaCosts MWMechanics::AiPackage::getAreaCosts(const MWWorld::P
if (flags & DetourNavigator::Flag_walk) if (flags & DetourNavigator::Flag_walk)
{ {
float walkCost; float walkCost;
if (getTypeId() == TypeIdWander) if (getTypeId() == AiPackageTypeId::Wander)
walkCost = 1.0 / actorClass.getWalkSpeed(actor); walkCost = 1.0 / actorClass.getWalkSpeed(actor);
else else
walkCost = 1.0 / actorClass.getRunSpeed(actor); walkCost = 1.0 / actorClass.getRunSpeed(actor);