mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 10:29:00 +00:00
Fix warning for unused but set variable in CInput
Delete not used index variable i in updateText method. Signed-off-by: Simon <simon@fentzl.de>
This commit is contained in:
1 parent
750fbe44bd
commit
3499f18091
1 file changed
+1
-2
@@ -1602,10 +1602,9 @@ void CInput::UpdateText(int from, int to_before, int to_after)
|
||||
// actually remove the entire lines they are on, it'll all have
|
||||
// to be redone. And when going along, we'll delete a row at a time
|
||||
// when continuing to see how much more after 'to' we need to remake.
|
||||
int i = 0;
|
||||
for (std::list<SRow>::iterator it = m_CharacterPositions.begin();
|
||||
it != m_CharacterPositions.end();
|
||||
++it, ++i)
|
||||
++it)
|
||||
{
|
||||
if (!destroy_row_from_used && it->m_ListStart > from)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user