mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
ActionMap::processAction crashfix
ensure pNode->makeConsoleCommand actually contains data, not just a pointer to where to start reading. reported by steve yorkshire: https://discord.com/channels/358091480004558848/783127087820439582/1524773485308678144
This commit is contained in:
parent
7059bbaf75
commit
cffeb69306
1 changed files with 1 additions and 1 deletions
|
|
@ -1482,7 +1482,7 @@ bool ActionMap::processAction(const InputEventInfo* pEvent)
|
|||
if(pNode->flags & Node::BindCmd)
|
||||
{
|
||||
// it's a bind command
|
||||
if (pNode->makeConsoleCommand)
|
||||
if (pNode->makeConsoleCommand && pNode->makeConsoleCommand[0])
|
||||
{
|
||||
StringTableEntry objectName = getName() != StringTable->EmptyString() ? getName() : getInternalName();
|
||||
String context = String::ToString("%s\nObject: %s", Platform::makeRelativePathName(getFilename(), NULL), objectName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue