aboutsummaryrefslogtreecommitdiff
path: root/src/game/CreatureAIImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/CreatureAIImpl.h')
-rw-r--r--src/game/CreatureAIImpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/CreatureAIImpl.h b/src/game/CreatureAIImpl.h
index e211c50043a..f6653ce40f7 100644
--- a/src/game/CreatureAIImpl.h
+++ b/src/game/CreatureAIImpl.h
@@ -27,7 +27,7 @@ template<class T>
inline
const T& RAND(const T& v1, const T& v2)
{
- return rand()%2 ? v1 : v2;
+ return (rand()%2) ? v1 : v2;
}
template<class T>