diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 23:42:07 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 23:42:07 +0100 |
| commit | 4d9a82b720c8ce74b94f43f72ddd819ef21abbdf (patch) | |
| tree | c0a5d21b8e19fbb60c286faec8e302e6f32b6679 /editor/scenery-editor.cpp | |
| parent | 32b8c22828315292857e2cd9909fba620f30ff70 (diff) | |
pre-declare integer types without cstddef/cstdint
Diffstat (limited to 'editor/scenery-editor.cpp')
| -rw-r--r-- | editor/scenery-editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scenery-editor.cpp b/editor/scenery-editor.cpp index 45dd0288..562ca04f 100644 --- a/editor/scenery-editor.cpp +++ b/editor/scenery-editor.cpp @@ -84,7 +84,7 @@ void scenery_editor::place_tile(world& w, global_coords pos, const scenery_& s) // don't regen colliders const auto px = Vector2(pos.local()) * TILE_SIZE2; const auto es = c.entities(); - for (auto i = es.size()-1; i != (std::size_t)-1; i--) + for (auto i = es.size()-1; i != (size_t)-1; i--) { const auto& e = *es[i]; if (e.type != entity_type::scenery) |
