mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Removed some potentially unsafe smart pointer constructions
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@710 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -103,7 +103,8 @@ void AutoReplaceList::removeSelected() {
|
||||
items.erase(items.begin() + i);
|
||||
// select next
|
||||
refreshList();
|
||||
selectItem(items.empty() ? VoidP() : VoidP(items[min(i, items.size())]), true, true);
|
||||
selectItem(items.empty() ? VoidP() : static_pointer_cast<IntrusivePtrVirtualBase>(items[min(i, items.size())]),
|
||||
true, true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user