diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index 0f392b13..bab71973 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -2460,6 +2460,7 @@ entclass* entityclass::createentity(int xp, int yp, int t, int meta1, int meta2, const char* type = legacy_id_to_entity(customenemy); set_enemy_type(&entity, type); set_enemy_colour(&entity); + break; } case 100: // Invalid enemy, but gets treated as a teleporter entity.type = EntityType_TELEPORTER; diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index a235f31d..587a1a8c 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -2353,6 +2353,8 @@ void Graphics::drawentity(const int i, const int yoff) draw_grid_tile(grphx.im_sprites, obj.entities[i].drawframe, xp, yp - yoff, sprites_rect.w, sprites_rect.h, obj.entities[i].realcol, 6, 6); break; } + case EntityRenderType_INVALID: + break; } }