summaryrefslogtreecommitdiffstats
path: root/scene/resources/animation.cpp
diff options
context:
space:
mode:
authorkarroffel <therzog@mail.de>2018-10-04 09:17:59 +0200
committerkarroffel <therzog@mail.de>2018-10-04 09:17:59 +0200
commita0f206aae81b44fb48cb74900b9831835da40327 (patch)
tree878f80e9a6c3bfd0c944887259afc1884b0cc976 /scene/resources/animation.cpp
parent171be91804d68adf7d36e36a3f15e885cda47bf7 (diff)
downloadredot-engine-a0f206aae81b44fb48cb74900b9831835da40327.tar.gz
fix enum cast warnings on clang
Diffstat (limited to 'scene/resources/animation.cpp')
-rw-r--r--scene/resources/animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp
index 80ad2ad739..5c01cadcd5 100644
--- a/scene/resources/animation.cpp
+++ b/scene/resources/animation.cpp
@@ -1901,7 +1901,7 @@ void Animation::value_track_set_update_mode(int p_track, UpdateMode p_mode) {
ERR_FAIL_INDEX(p_track, tracks.size());
Track *t = tracks[p_track];
ERR_FAIL_COND(t->type != TYPE_VALUE);
- ERR_FAIL_INDEX(p_mode, 4);
+ ERR_FAIL_INDEX((int)p_mode, 4);
ValueTrack *vt = static_cast<ValueTrack *>(t);
vt->update_mode = p_mode;