mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 19:39:40 +00:00
Workaround for ambiguous "Chargen_plank" ID in chargen script (one at -22,16 and one at -2,-9)
This commit is contained in:
parent
1dff1fabdb
commit
3c5e4ceefd
1 changed files with 12 additions and 2 deletions
|
@ -415,8 +415,18 @@ namespace MWWorld
|
|||
}
|
||||
};
|
||||
|
||||
typedef std::map<std::string, ESM::Cell> DynamicInt;
|
||||
typedef std::map<std::pair<int, int>, ESM::Cell> DynamicExt;
|
||||
struct DynamicExtCmp
|
||||
{
|
||||
bool operator()(const std::pair<int, int> &left, const std::pair<int, int> &right) const {
|
||||
if (left.first == right.first) {
|
||||
return left.second < right.second;
|
||||
}
|
||||
return left.first < right.first;
|
||||
}
|
||||
};
|
||||
|
||||
typedef std::map<std::string, ESM::Cell> DynamicInt;
|
||||
typedef std::map<std::pair<int, int>, ESM::Cell, DynamicExtCmp> DynamicExt;
|
||||
|
||||
DynamicInt mInt;
|
||||
DynamicExt mExt;
|
||||
|
|
Loading…
Reference in a new issue