Skip to content

Commit

Permalink
Next test
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 committed Dec 20, 2023
1 parent 761e166 commit 7d8079a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/library_physenv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ void InitPhysEnv(ILuaInterface* LUA)
if (physenv == nullptr) {
phys = (IPhysics*)physics_loader.GetFactory()(VPHYSICS_INTERFACE_VERSION, nullptr);
if (phys == nullptr)
Msg("unable to initialize IPhysics");
LUA->ThrowError("unable to initialize IPhysics");


physenv = phys->GetActiveEnvironmentByIndex(0);
if (physenv == NULL)
Msg("unable to get IPhysicsEnvironment");
LUA->ThrowError("unable to get IPhysicsEnvironment");
}

LUA->PushSpecial(SPECIAL_GLOB);
Expand Down
2 changes: 1 addition & 1 deletion source/lua_ILuaInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void InitLuaLibraries(ILuaThread* thread)
InitGlobal(LUA);
InitNet(LUA);
InitGameevent(thread);
InitPhysEnv(LUA);
//InitPhysEnv(LUA);
}

LUA_FUNCTION(ILuaInterface_InitLibraries)
Expand Down

0 comments on commit 7d8079a

Please sign in to comment.