mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04: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
@ -415,8 +415,18 @@ namespace MWWorld
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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::string, ESM::Cell> DynamicInt;
|
||||||
typedef std::map<std::pair<int, int>, ESM::Cell> DynamicExt;
|
typedef std::map<std::pair<int, int>, ESM::Cell, DynamicExtCmp> DynamicExt;
|
||||||
|
|
||||||
DynamicInt mInt;
|
DynamicInt mInt;
|
||||||
DynamicExt mExt;
|
DynamicExt mExt;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user