LocalPlayer::accelerateHorizontal: cleanups
[oweals/minetest.git] / src / database-postgresql.cpp
index ac25afd4838b8765b2ed68bd4e5c7236645d533f..78f59419f15d304bcf638409ab15075c6b753a1d 100644 (file)
@@ -23,9 +23,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #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
@@ -584,7 +581,7 @@ bool PlayerDatabasePostgreSQL::loadPlayer(RemotePlayer *player, PlayerSAO *sao)
                        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);