Fix stupid wrong check
authorhgn <hgodden00@gmail.com>
Wed, 2 Jul 2025 13:35:47 +0000 (14:35 +0100)
committerhgn <hgodden00@gmail.com>
Wed, 2 Jul 2025 13:35:47 +0000 (14:35 +0100)
src/array_file.c
src/ent_atom.c

index 30b1754104e1882b8affde0e943f982effd30759..a90aff28e9da6fddc3148bbe56a224bbc9ce2426 100644 (file)
@@ -3,6 +3,9 @@
 
 u32 af_str_hash( array_file_context *af, u32 pstr )
 {
+   if( pstr & 0x3 )
+      vg_fatal_error( "ALIGNMENT ERROR (%u)\n", pstr );
+
    return *((u32 *)(af->strings + pstr));
 }
 
index d290cba9af74b628ebe86475b8a502bb6a58ea58..ad8c7332c09c405e1f06522ff3b3d52e13623794 100644 (file)
@@ -154,6 +154,9 @@ void _atom_notify( enum e_atom_list list, const char *alias )
    for( u32 i=0; i<af_arrcount( &world->ent_atom ); i ++ )
    {
       ent_atom *atom = af_arritm( &world->ent_atom, i );
+      if( atom->flags & k_ent_atom_scrap ) 
+         continue;
+
       if( af_str_eq( &world->meta.af, atom->pstr_alias, alias, vg_strdjb2(alias)) )
       {
          _world_raise_event( mdl_entity_id( k_ent_atom, i ), "changed" );