From: Andrew C. <ac...@us...> - 2005-02-01 00:42:27
|
Update of /cvsroot/planeshift/planeshift/src/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20473/src/server Modified Files: workmanager.cpp Log Message: Turn off saving when creating the item for the first time. Otherwise tries to save in bad state. Index: workmanager.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/server/workmanager.cpp,v retrieving revision 1.94 retrieving revision 1.95 diff -C2 -d -r1.94 -r1.95 *** workmanager.cpp 30 Jan 2005 22:58:48 -0000 1.94 --- workmanager.cpp 1 Feb 2005 00:42:17 -0000 1.95 *************** *** 1465,1468 **** --- 1465,1469 ---- workItem->AddItemToContainer( newItem ); SendItemUpdate( newItem->GetLocInParent(), newItem ); + newItem->Save(); #ifdef DEBUG_WORKMANAGER *************** *** 1571,1574 **** --- 1572,1576 ---- } + newItem->EnableSaving(false); // Set stack count newItem->SetItemQuality(itemQuality); *************** *** 1594,1597 **** --- 1596,1600 ---- #endif + newItem->EnableSaving(true); return newItem; |