@@ -2682,7 +2682,7 @@ df_trap_net_from_thread__step_over_inst(Arena *arena, DF_Entity *thread)
26822682internal B32
26832683df_advance_current_snapshot (Arena * arena , DF_CmdList * cmds , DF_Entity * thread )
26842684{
2685- for (DF_Entity * child = thread -> first ; !df_entity_is_nil (child ); child = child -> next )
2685+ for (DF_Entity * child = thread -> first ; !df_entity_is_nil (child ); child = child -> next )
26862686 {
26872687 if (child -> kind == DF_EntityKind_Snapshot && child -> b32 == 1 )
26882688 {
@@ -2711,7 +2711,6 @@ df_thread_snapshot(DF_Entity *thread)
27112711 return ;
27122712 }
27132713
2714- DF_Entity * prev = thread -> last ;
27152714 DF_Entity * snapshot = df_entity_alloc (0 , thread , DF_EntityKind_Snapshot );
27162715 df_entity_equip_ctrl_machine_id (snapshot , thread -> ctrl_machine_id );
27172716 df_entity_equip_ctrl_handle (snapshot , snapshot_handle );
@@ -5971,7 +5970,8 @@ df_hash_current_thread_snapshot(DF_Entity *thread, U32 *active_snapshot_index)
59715970 DF_Handle handle = df_handle_from_entity (thread );
59725971 U64 hash = df_hash_from_string (str8_struct (& handle ));
59735972 * active_snapshot_index = 0 ;
5974- for (DF_Entity * child = thread -> first ; !df_entity_is_nil (child ); child = child -> next ) {
5973+ for (DF_Entity * child = thread -> first ; !df_entity_is_nil (child ); child = child -> next )
5974+ {
59755975 if (child -> kind == DF_EntityKind_Snapshot && child -> b32 ) {
59765976 break ;
59775977 }
@@ -6944,7 +6944,7 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
69446944 for (DF_EntityNode * n = threads .first ; n != 0 ; n = n -> next )
69456945 {
69466946 DF_Entity * thread = n -> entity ;
6947- for (DF_Entity * child = thread -> first ; !df_entity_is_nil (child ); child = child -> next )
6947+ for (DF_Entity * child = thread -> first ; !df_entity_is_nil (child ); child = child -> next )
69486948 {
69496949 if (child -> kind == DF_EntityKind_Snapshot )
69506950 {
0 commit comments