Skip to content

Commit c53daa3

Browse files
committed
Remove rocket ani assertion
1 parent d746ae4 commit c53daa3

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)