1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 09:45:33 +00:00

Use proper type to cast enum value

This commit is contained in:
elsid 2022-09-02 20:26:57 +02:00
parent 204ab6fea3
commit de80b86cc1
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -125,7 +125,7 @@ namespace DetourNavigator
case JobStatus::Fail: return stream << "JobStatus::Fail";
case JobStatus::MemoryCacheMiss: return stream << "JobStatus::MemoryCacheMiss";
}
return stream << "JobStatus::" << static_cast<std::underlying_type_t<JobState>>(value);
return stream << "JobStatus::" << static_cast<std::underlying_type_t<JobStatus>>(value);
}
Job::Job(const AgentBounds& agentBounds, std::weak_ptr<GuardedNavMeshCacheItem> navMeshCacheItem,