forked from teamnwah/openmw-tes3coop
Fix errors and warnings
This commit is contained in:
parent
f49ebee56a
commit
60384399ee
2 changed files with 6 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <cfloat>
|
||||
#include <limits>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <boost/format.hpp>
|
||||
|
||||
|
@ -341,7 +342,7 @@ namespace MWMechanics
|
|||
std::vector<std::string>::iterator it;
|
||||
it = projectileIDs.begin();
|
||||
char numstr[8];
|
||||
sprintf(numstr, "%zd", (effects.mList.size()));
|
||||
sprintf(numstr, "%d", (int)(effects.mList.size()));
|
||||
std::string ID = "VFX_Multiple";
|
||||
ID = ID + numstr;
|
||||
it = projectileIDs.insert(it, ID);
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#include "projectilemanager.hpp"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <osg/PositionAttitudeTransform>
|
||||
|
||||
#include <components/esm/esmwriter.hpp>
|
||||
|
@ -92,13 +94,13 @@ namespace MWWorld
|
|||
attachTo = rotateNode;
|
||||
}
|
||||
|
||||
mResourceSystem->getSceneManager()->getInstance(model, attachTo);
|
||||
osg::ref_ptr<osg::Node> ptr = mResourceSystem->getSceneManager()->getInstance(model, attachTo);
|
||||
|
||||
if (state.mIdMagic.size() > 1)
|
||||
for (size_t iter = 1; iter != state.mIdMagic.size(); ++iter)
|
||||
{
|
||||
char numstr[8];
|
||||
sprintf(numstr, "%zd", iter);
|
||||
sprintf(numstr, "%d", (int)iter);
|
||||
std::string node = "Dummy0";
|
||||
node = node + numstr;
|
||||
const ESM::Weapon* weapon = MWBase::Environment::get().getWorld()->getStore().get<ESM::Weapon>().find (state.mIdMagic.at(iter));
|
||||
|
|
Loading…
Reference in a new issue