diff Monsters.cpp @ 1217:b237a61e61d3

sprintf didn't use .data member of new arrays
author Grumpy7
date Sun, 09 Jun 2013 17:35:10 +0200
parents 8c02e6f74b29
children 5450af4f57ef
line wrap: on
line diff
--- a/Monsters.cpp	Sun Jun 09 16:30:07 2013 +0200
+++ b/Monsters.cpp	Sun Jun 09 17:35:10 2013 +0200
@@ -1124,7 +1124,7 @@
                                     pInfos[curr_rec_num].field_3C_some_special_attack = pMonsterList->GetMonsterIDByName(pTmpBuf.data()) + 1;
                                     if ( pInfos[curr_rec_num].field_3C_some_special_attack == -1 )
                                         {
-                                        sprintf(Src, "Can't create random monster: '%s' See MapStats!", pTmpBuf);
+                                        sprintf(Src, "Can't create random monster: '%s' See MapStats!", pTmpBuf.data());
                                         MessageBoxA(nullptr, Src, "E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Itemdata.cpp:2239", 0);
                                         }
                                     }