mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-04 20:15:16 +00:00
Use fixed buffer size var when allocating return buffer from console.
Conflicts: Engine/source/T3D/missionArea.cpp Engine/source/gui/editor/guiDebugger.cpp
This commit is contained in:
parent
d0a64026b0
commit
f3fc84738b
42 changed files with 300 additions and 204 deletions
|
|
@ -1631,10 +1631,11 @@ DefineEngineFunction( containerRayCast, const char*,
|
|||
pExempt->enableCollision();
|
||||
|
||||
// add the hit position and normal?
|
||||
char *returnBuffer = Con::getReturnBuffer(256);
|
||||
static const U32 bufSize = 256;
|
||||
char *returnBuffer = Con::getReturnBuffer(bufSize);
|
||||
if(ret)
|
||||
{
|
||||
dSprintf(returnBuffer, 256, "%d %g %g %g %g %g %g %g",
|
||||
dSprintf(returnBuffer, bufSize, "%d %g %g %g %g %g %g %g",
|
||||
ret, rinfo.point.x, rinfo.point.y, rinfo.point.z,
|
||||
rinfo.normal.x, rinfo.normal.y, rinfo.normal.z, rinfo.distance);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue