Skip to content

Commit

Permalink
Don't use array new to create vision sites
Browse files Browse the repository at this point in the history
Coverity CID 1528899.
Closes #2071.
  • Loading branch information
lmoureaux committed Dec 25, 2023
1 parent b8bfe2b commit 2fc47c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/vision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ bool vision_reveal_tiles(struct vision *vision, bool reveal_tiles)
struct vision_site *vision_site_new(int identity, struct tile *location,
struct player *owner)
{
vision_site *psite = new vision_site[1]();
vision_site *psite = new vision_site();

psite->identity = identity;
psite->location = location;
Expand Down

0 comments on commit 2fc47c1

Please sign in to comment.