mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-16 10:02:53 +00:00
fix: correct wchar_t va_arg extraction (for GCC compat)
This commit is contained in:
parent
5de59f25bc
commit
4bd3891557
|
|
@ -991,7 +991,7 @@ ShapedRecipy* Recipes::addShapedRecipy(ItemInstance* result, ...) {
|
|||
|
||||
break;
|
||||
case L'c':
|
||||
wchFrom = va_arg(vl, wchar_t);
|
||||
wchFrom = (wchar_t)va_arg(vl, int);
|
||||
break;
|
||||
case L'z':
|
||||
pItemInstance = va_arg(vl, ItemInstance*);
|
||||
|
|
@ -1008,7 +1008,7 @@ ShapedRecipy* Recipes::addShapedRecipy(ItemInstance* result, ...) {
|
|||
mappings->insert(myMap::value_type(wchFrom, pItemInstance));
|
||||
break;
|
||||
case L'g':
|
||||
wchFrom = va_arg(vl, wchar_t);
|
||||
wchFrom = (wchar_t)va_arg(vl, int);
|
||||
switch (wchFrom) {
|
||||
// case L'W':
|
||||
// group=ShapedRecipy::eGroupType_Weapon;
|
||||
|
|
@ -1096,7 +1096,7 @@ void Recipes::addShapelessRecipy(ItemInstance* result, ...) {
|
|||
ingredients->push_back(new ItemInstance(pTile));
|
||||
break;
|
||||
case L'g':
|
||||
wchFrom = va_arg(vl, wchar_t);
|
||||
wchFrom = (wchar_t)va_arg(vl, int);
|
||||
switch (wchFrom) {
|
||||
case L'T':
|
||||
group = Recipy::eGroupType_Tool;
|
||||
|
|
|
|||
Loading…
Reference in a new issue