#include "database-postgresql.h"
#ifdef _WIN32
- #ifndef WIN32_LEAN_AND_MEAN
- #define WIN32_LEAN_AND_MEAN
- #endif
// Without this some of the network functions are not found on mingw
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
if (itemStr.length() > 0) {
ItemStack stack;
stack.deSerialize(itemStr);
- invList->addItem(pg_to_uint(results2, row2, 0), stack);
+ invList->changeItem(pg_to_uint(results2, row2, 0), stack);
}
}
PQclear(results2);