We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 05624b5 + c53daa3 commit 1d5fa5eCopy full SHA for 1d5fa5e
1 file changed
code/scpui/RocketRenderingInterface.cpp
@@ -335,7 +335,9 @@ int RocketRenderingInterface::getBitmapNum(Rocket::Core::TextureHandle handle)
335
void RocketRenderingInterface::advanceAnimation(Rocket::Core::TextureHandle handle, float advanceTime)
336
{
337
Assertion(handle != 0, "Invalid handle for setAnimationFrame");
338
- Assertion(get_texture(handle)->is_animation, "Tried to use advanceAnimation with a non-animation!");
+ if (!get_texture(handle)->is_animation) {
339
+ return;
340
+ }
341
342
auto tex = get_texture(handle);
343
0 commit comments