mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-11 20:39:06 +00:00
Used two wrong casts, thanks uso for spotting it.
This commit is contained in:
parent
f0b8f42ac1
commit
732fbac8ba
@ -1089,7 +1089,7 @@ void terrain_builder::build_terrains()
|
||||
}
|
||||
|
||||
if(rule_matches(rule->second, *itor - loc, rule_index,
|
||||
lexical_cast<size_t>
|
||||
static_cast<size_t>
|
||||
(biggest_constraint_adjacent + 1) !=
|
||||
rule->second.constraints.size())) {
|
||||
|
||||
|
@ -60,7 +60,7 @@ private:
|
||||
|
||||
bool on_board(const gamemap::location& loc) const
|
||||
{ return loc.x >= 0 && loc.y >= 0 &&
|
||||
loc.x < lexical_cast<long>(width_) &&
|
||||
loc.x < static_cast<long>(width_) &&
|
||||
loc.y < static_cast<long>(height_); }
|
||||
|
||||
void set_terrain(gamemap::location loc, t_translation::t_letter t);
|
||||
|
Loading…
x
Reference in New Issue
Block a user