summaryrefslogtreecommitdiff
path: root/src/render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render.cpp b/src/render.cpp
index 48beaa9..b80dcbd 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -272,6 +272,7 @@ bool animated_texture_t::load(std::string prefix, size_t frame_count_)
if (!frames[i].loadFromFile(path)) {
delete[] frames;
frames = NULL;
+ frame_count = 0;
return false;
}
}