diff Player.cpp @ 1861:a86c60679949

changing most of party arrays to std::arrays, some minor cleanups in actor.cpp
author Grumpy7
date Mon, 14 Oct 2013 06:32:30 +0200
parents 211dfe2d8db1
children 351b4ff10ac1
line wrap: on
line diff
--- a/Player.cpp	Mon Oct 14 03:22:34 2013 +0200
+++ b/Player.cpp	Mon Oct 14 06:32:30 2013 +0200
@@ -7026,7 +7026,7 @@
         }
       }
       if ( pParty->pHirelings[0].uProfession == pValue )
-        memset(pParty->pHirelings, 0, sizeof(NPCData));
+        memset(pParty->pHirelings.data(), 0, sizeof(NPCData));
       if ( pParty->pHirelings[1].uProfession == pValue )
         memset(&pParty->pHirelings[1], 0, sizeof(NPCData));
       pParty->hirelingScrollPosition = 0;