Fixed potential reaching end of function.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
66379bfa65
commit
3c5b3d5c03
|
@ -105,6 +105,8 @@ namespace CreatureLib::Battling {
|
|||
return {battle->GetCreature(index)};
|
||||
};
|
||||
}
|
||||
THROW_CREATURE("Unknown attack target kind: '" << CreatureLib::Library::AttackTargetHelper::ToString(target)
|
||||
<< "'.");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10,4 +10,8 @@ public:
|
|||
virtual ~CreatureException() = default;
|
||||
};
|
||||
|
||||
#define THROW_CREATURE(message) \
|
||||
std::stringstream ss; \
|
||||
ss << message; \
|
||||
throw CreatureException(ss.str());
|
||||
#endif // CREATURELIB_CREATUREEXCEPTION_HPP
|
||||
|
|
Loading…
Reference in New Issue