Skip to content

Commit 1d5fa5e

Browse files
Merge pull request #6852 from MjnMixael/fix_rocket_ani_assertion
Remove rocket ani assertion
2 parents 05624b5 + c53daa3 commit 1d5fa5e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

code/scpui/RocketRenderingInterface.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ int RocketRenderingInterface::getBitmapNum(Rocket::Core::TextureHandle handle)
335335
void RocketRenderingInterface::advanceAnimation(Rocket::Core::TextureHandle handle, float advanceTime)
336336
{
337337
Assertion(handle != 0, "Invalid handle for setAnimationFrame");
338-
Assertion(get_texture(handle)->is_animation, "Tried to use advanceAnimation with a non-animation!");
338+
if (!get_texture(handle)->is_animation) {
339+
return;
340+
}
339341

340342
auto tex = get_texture(handle);
341343

0 commit comments

Comments
 (0)