Guest User

Untitled

a guest
Feb 13th, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. void CEterPackManager::RegisterRootPack(const char * c_szName)
  2. {
  3. assert(c_szName);
  4. if (m_pFoxFS) -- this line 479
  5. {
  6. int errorCode = 0;
  7. if ((errorCode = FoxFS_LoadA(m_pFoxFS, c_szName)) != FoxFS::ERROR_OK) --- And line 482
  8. {
  9. TraceError("%s: Error Code %d", c_szName, errorCode);
  10. }
  11. }
  12. else
  13. {
  14. TraceError("FoxFS: Not initialized!");
  15. }
  16. }
  17.  
  18. For the first five lines
  19.  
  20. AND:
  21.  
  22. bool CEterPackManager::RegisterPack(const char * c_szName, const char * c_szDirectory, const BYTE* c_pbIV)
  23. {
  24. assert(c_szName);
  25.  
  26. if (m_pFoxFS) --- Line 523
  27. {
  28. int errorCode = 0;
  29. if (((errorCode = FoxFS_LoadA(m_pFoxFS, c_szName)) != FoxFS::ERROR_OK) /*&& ((errorCode = FoxFS_LoadA(m_pFoxFS, c_szName)) != FoxFS::ERROR_ARCHIVE_INVALID)*/) ---- And line 526
  30. {
  31. TraceError("%s: Error Code %d", c_szName, errorCode);
  32. }
  33. }
  34. else
  35. {
  36. TraceError("FoxFS: Not initialized!");
  37. }
  38.  
  39. return false;
  40. }
  41.  
  42. Next five lines
  43.  
  44. And:
  45. bool CPythonNonPlayer::IsMonsterStone(DWORD dwVnum)
  46. {
  47. const CPythonNonPlayer::TMobTable * c_pTable = GetTable(dwVnum);
  48. if (!c_pTable)
  49. {
  50. DWORD bType = 0;
  51. return bType; --- this is line warning 291
  52. }
  53.  
  54. return c_pTable->bType == 2;
  55. }
  56. #endif
  57.  
  58. Lines for the warning
Advertisement
Add Comment
Please, Sign In to add comment